Skip to content

Commit 074c187

Browse files
committed
Add verification step for build output and copy 404.html for SPA routing in GitHub Actions workflow. This enhances deployment process by ensuring build integrity and improving user experience for missing pages.
1 parent 8e11831 commit 074c187

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ jobs:
3434
- name: Build
3535
run: npm run build
3636

37+
- name: Verify build output
38+
run: |
39+
echo "Build output:"
40+
ls -la dist/
41+
echo "Assets:"
42+
ls -la dist/assets/ || echo "No assets folder"
43+
echo "Files in dist:"
44+
find dist -type f | head -20
45+
46+
- name: Copy 404.html for SPA routing
47+
run: cp dist/index.html dist/404.html
48+
3749
- name: Setup Pages
3850
uses: actions/configure-pages@v4
3951

0 commit comments

Comments
 (0)