Skip to content

Commit 8ce64ce

Browse files
jeffabaileyclaude
andcommitted
fix: deploy book/html not book to gh-pages docs/
mdBook outputs the HTML site to book/html/, not book/ root. Previous commit was deploying the wrong directory and also deleting the actual content with rm -rf book/html. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 79ddba7 commit 8ce64ce

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/mdbook.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,11 @@ jobs:
7474
- name: Build with mdBook
7575
run: ${{ env.CARGO_HOME }}/bin/mdbook build
7676

77-
- name: Remove nested html output
78-
run: rm -rf ./book/html
79-
8077
- name: Deploy to GitHub Pages
8178
uses: JamesIves/github-pages-deploy-action@v4
8279
with:
8380
branch: gh-pages
84-
folder: ./book
81+
folder: ./book/html
8582
target-folder: docs
8683
clean: true
8784
clean-exclude: pr-preview
@@ -151,14 +148,10 @@ jobs:
151148
if: github.event.action != 'closed'
152149
run: ${{ env.CARGO_HOME }}/bin/mdbook build
153150

154-
- name: Remove nested html output
155-
if: github.event.action != 'closed'
156-
run: rm -rf ./book/html
157-
158151
- name: Deploy PR preview
159152
uses: rossjrw/pr-preview-action@v1
160153
with:
161-
source-dir: ./book
154+
source-dir: ./book/html
162155
preview-branch: gh-pages
163156
umbrella-dir: pr-preview
164157

0 commit comments

Comments
 (0)