Skip to content

Commit

Permalink
fix: support client side routing in github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ndavd committed Jan 12, 2024
1 parent 5975389 commit 511fefb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Deploy to GitHub Pages
env:
BUILD_PATH: dist
on:
workflow_dispatch:
permissions:
Expand Down Expand Up @@ -27,12 +29,13 @@ jobs:
- name: Build
run: |
yarn build
cp $BUILD_PATH/index.html $BUILD_PATH/404.html
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'dist'
path: ${{ env.BUILD_PATH }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 511fefb

Please sign in to comment.