From 0501ab4c4046e61c676916ad5dfc7fe56e2138da Mon Sep 17 00:00:00 2001 From: Nuno David Date: Fri, 12 Jan 2024 22:57:28 +0000 Subject: [PATCH] fix: support client side routing in github pages --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 52481cb..ff05f12 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,6 @@ name: Deploy to GitHub Pages +env: + build-path: dist on: workflow_dispatch: permissions: @@ -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: $build-path - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2