Skip to content

fix(pages): include PR previews in GitHub Pages deploy#108

Merged
jeffabailey merged 1 commit intomainfrom
fix-pages-pr-preview
Mar 18, 2026
Merged

fix(pages): include PR previews in GitHub Pages deploy#108
jeffabailey merged 1 commit intomainfrom
fix-pages-pr-preview

Conversation

@jeffabailey
Copy link
Copy Markdown
Collaborator

Merges pr-* directories from the gh-pages branch into the Pages artifact so that PR preview URLs (e.g. .../pr-107/) are served when using GitHub Actions as the Pages source.

  • Adds a step after mdbook build to git fetch origin gh-pages and git archive each pr-<number> dir into ./book before uploading the artifact.
  • Keeps deploy via upload-pages-artifact + deploy-pages (no repo setting change).
  • Adds logging so we can confirm the merge in workflow logs.

Made with Cursor

@jeffabailey jeffabailey requested a review from a team as a code owner March 18, 2026 05:32
@jeffabailey jeffabailey merged commit 09dd868 into main Mar 18, 2026
1 check passed
@jeffabailey jeffabailey deleted the fix-pages-pr-preview branch March 18, 2026 05:32
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