Skip to content

Commit 4a79c8c

Browse files
committed
verify output
1 parent efc4ec4 commit 4a79c8c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Deploy GitHub Pages
1+
name: Deploy MkDocs to GitHub Pages
22

33
on:
44
push:
55
branches:
66
- main
7-
pull_request:
87

98
jobs:
109
deploy:
@@ -24,6 +23,11 @@ jobs:
2423
- name: Build documentation
2524
run: mkdocs build --site-dir ./out
2625

26+
- name: Verify structure
27+
run: |
28+
ls -R ./out # Debug: Show built files
29+
test -f ./out/index.html || exit 1 # Fail if no index.html
30+
2731
- name: Deploy to GitHub Pages
2832
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
2933
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)