Skip to content

Fix Juniper Book deploy for mdBook 0.5#1384

Merged
LegNeato merged 1 commit into
graphql-rust:masterfrom
LegNeato:fix-book-deploy
Jun 30, 2026
Merged

Fix Juniper Book deploy for mdBook 0.5#1384
LegNeato merged 1 commit into
graphql-rust:masterfrom
LegNeato:fix-book-deploy

Conversation

@LegNeato

Copy link
Copy Markdown
Member

mdBook 0.5 makes --dest-dir relative to the CWD, so the book was written to gh-pages/ (repo root) instead of book/gh-pages where the deploy step publishes from.
Pass out=book/gh-pages to fix the broken deploy (Book) job.

mdBook 0.5 resolves `--dest-dir` relative to the current directory
instead of the book root, so `make book.build` wrote the rendered
book to `gh-pages/` at the repo root while the deploy step publishes
`book/gh-pages`. peaceiris/actions-gh-pages then found nothing to
publish, assumed a first deployment, and failed trying to orphan the
already-existing `gh-pages` branch. Pass `out=book/gh-pages` so the
output lands where `publish_dir` expects.
@LegNeato LegNeato merged commit 5dfd5b9 into graphql-rust:master Jun 30, 2026
177 checks passed
@LegNeato

Copy link
Copy Markdown
Member Author

Can't test this on PRs, merging.

@LegNeato LegNeato deleted the fix-book-deploy branch June 30, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant