We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 257f12b commit 01615a2Copy full SHA for 01615a2
.github/workflows/deploy-pages.yml
@@ -40,8 +40,13 @@ jobs:
40
run: |
41
npm run build -- --configuration=production --output-path=dist/gh-pages --base-href "/${{ github.event.repository.name }}/"
42
43
- - name: Add SPA fallback (404.html)
44
- run: cp dist/gh-pages/index.html dist/gh-pages/404.html
+ - name: Add SPA fallback (404.html) if present
+ run: |
45
+ if [ -f dist/gh-pages/index.html ]; then
46
+ cp dist/gh-pages/index.html dist/gh-pages/404.html
47
+ else
48
+ echo "index.html not found; skipping SPA fallback."
49
+ fi
50
51
- name: Upload Pages artifact
52
uses: actions/upload-pages-artifact@v3
0 commit comments