Skip to content

Commit

Permalink
ci: copy index.html to 404.html (#29)
Browse files Browse the repository at this point in the history
* ci: copy index.html to 404.html

* chore: copy the same to main deploy
  • Loading branch information
wodeni authored Dec 29, 2024
1 parent b4496ef commit d3cfded
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
run: |
yarn
yarn build
- name: Copy index.html to 404.html for routing
run: |
cp dist/index.html dist/404.html
- name: Deploy website
uses: JamesIves/[email protected]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
yarn
yarn build -- --base /pr-preview/pr-${{ github.event.pull_request.number }}/
- name: Copy index.html to 404.html for routing
run: |
cp dist/index.html dist/404.html
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
Expand Down

0 comments on commit d3cfded

Please sign in to comment.