Skip to content

Commit 860f283

Browse files
Fix GitHub Pages deployment workflow
- Ensure out directory exists before creating .nojekyll file - Add debugging steps to verify build output - Improve error handling in deployment process
1 parent 2f90b61 commit 860f283

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,20 @@ jobs:
3030

3131
- name: Build with Next.js
3232
run: pnpm run build
33+
34+
- name: Verify build output
35+
run: |
36+
echo "Contents of current directory:"
37+
ls -la
38+
echo "Contents of out directory:"
39+
ls -la out/ || echo "out directory does not exist"
40+
3341
- name: Add .nojekyll file
34-
run: touch ./out/.nojekyll
42+
run: |
43+
mkdir -p ./out
44+
touch ./out/.nojekyll
45+
echo "Created .nojekyll file"
46+
ls -la ./out/
3547
3648
- name: Upload artifact
3749
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)