Restore GitHub Pages deploy after repository move#5
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job 'deploy'
Restore GitHub Pages deploy after repository move
Jul 17, 2026
joshuajbouw
marked this pull request as ready for review
July 17, 2026 13:28
joshuajbouw
approved these changes
Jul 17, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Pages deployment workflow and repository metadata after moving the repo to astrid-runtime/book, ensuring Pages builds and deploys correctly under the new configuration.
Changes:
- Add
actions/configure-pages@v5and use itsbase_pathoutput to setMDBOOK_OUTPUT__HTML__SITE_URLdynamically. - Upgrade
actions/deploy-pagesfrom@v4to@v5. - Update
book.tomlrepository/edit URLs to point atastrid-runtime/book.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
book.toml |
Updates generated repository/edit links to the new GitHub org/repo. |
.github/workflows/deploy.yml |
Aligns Pages build/deploy steps with current Pages actions and dynamic base path resolution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| run: mdbook build | ||
| env: | ||
| MDBOOK_OUTPUT__HTML__SITE_URL: /book/ | ||
| MDBOOK_OUTPUT__HTML__SITE_URL: ${{ steps.pages.outputs.base_path }}/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
deployActions job started failing whenactions/deploy-pagesattempted to create a Pages deployment and received404 Not Found. The workflow was still assuming the old Pages/repository setup after the move toastrid-runtime/book.Pages workflow initialization
actions/configure-pages@v5to the build job so the workflow resolves the current Pages base path before building.steps.pages.outputs.base_pathintoMDBOOK_OUTPUT__HTML__SITE_URLinstead of hardcoding/book/.Pages deploy action
actions/deploy-pagesto@v5so deploy uses the current Pages action path alongsideconfigure-pages.Repository metadata
book.tomlGitHub links fromunicity-astrid/booktoastrid-runtime/bookso generated repo/edit links point at the live repository.