Skip to content

Commit 1d086f2

Browse files
committed
fix: gh-pages deploy folder should be docs
1 parent 056bd18 commit 1d086f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/mdbook.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Workflow for building and deploying a mdBook site to GitHub Pages.
2-
# - On push to main: deploys to the root of gh-pages.
2+
# - On push to main: deploys to docs/ on gh-pages.
33
# - On pull_request: deploys a preview under pr-preview/pr-<number>/ on gh-pages,
44
# comments the preview URL, and cleans up when the PR closes.
55
#
66
# Repo Settings required:
7-
# Pages -> Source: "Deploy from a branch" -> gh-pages / (root)
7+
# Pages -> Source: "Deploy from a branch" -> gh-pages / /docs
88
# Actions -> General -> Workflow permissions: "Read and write permissions"
99
#
1010
# See: https://rust-lang.github.io/mdBook/index.html
@@ -79,6 +79,7 @@ jobs:
7979
with:
8080
branch: gh-pages
8181
folder: ./book
82+
target-folder: docs
8283
clean: true
8384
clean-exclude: pr-preview
8485

0 commit comments

Comments
 (0)