Skip to content

Commit a1e2f26

Browse files
authored
fix: build directory changed (#219)
1 parent cbfe9f1 commit a1e2f26

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,17 @@ jobs:
5252
- name: Build with mdBook
5353
run: mdbook build
5454

55+
- name: Verify build directory contains index.html
56+
run: |
57+
if [ ! -f ./docs/html/index.html ]; then
58+
echo "index.html not found"
59+
exit 1
60+
fi
61+
5562
- name: Upload artifact
5663
uses: actions/upload-pages-artifact@v3
5764
with:
58-
path: ./docs
65+
path: ./docs/html
5966

6067
# Deployment job
6168
deploy:

0 commit comments

Comments
 (0)