Skip to content

Commit 7cb8f22

Browse files
committed
fix github pages workflow
1 parent 48f8348 commit 7cb8f22

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,26 @@ jobs:
3434
- name: Build
3535
run: npm run build
3636

37+
- name: Debug build output
38+
run: |
39+
echo "Root files:"
40+
ls -la
41+
echo "Dist files:"
42+
ls -la dist || true
43+
echo "Dist client files:"
44+
ls -la dist/client || true
45+
3746
- name: Copy SPA fallback
38-
run: cp dist/client/index.html dist/client/404.html
47+
run: |
48+
if [ -f dist/client/index.html ]; then
49+
cp dist/client/index.html dist/client/404.html
50+
elif [ -f dist/index.html ]; then
51+
cp dist/index.html dist/404.html
52+
else
53+
echo "No index.html found"
54+
find dist -maxdepth 3 -type f
55+
exit 1
56+
fi
3957
4058
- name: Upload GitHub Pages artifact
4159
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)