feat: keep multiple versions of github pages#255
Conversation
3a90dcf to
e13614a
Compare
There was a problem hiding this comment.
Pull request overview
Updates the documentation deployment workflow to preserve multiple published doc versions by deploying each build into a version-specific directory on the gh-pages branch, instead of uploading a single Pages artifact that replaces the whole site.
Changes:
- Switches from
actions/configure-pages+actions/deploy-pagesto a git-worktree-based push togh-pages, updating only/$VERSION/. - Changes workflow permissions to allow repository writes needed for pushing to
gh-pages. - Renames the docs job and adjusts comments/branch-to-version mapping text.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #255 +/- ##
==========================================
- Coverage 80.38% 80.37% -0.02%
==========================================
Files 501 501
Lines 72337 72337
Branches 10906 10906
==========================================
- Hits 58148 58139 -9
- Misses 10907 10913 +6
- Partials 3282 3285 +3 see 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jason-famedly
left a comment
There was a problem hiding this comment.
Seems legit. Let's do it!
53e67b4 to
cf0a121
Compare
When we started hosting our own version of the docs, we had to change the github workflow to build the docs to an org-approved one, which handled things differently. It was using the "deploy from github actions" method instead of "deploy from branch".
This PR adds what's necessary to keep all docs versions in this branch, which allows the version dropdown picker to work.
Adding/removing folders in this gh-pages branch allows to alter what's shown in the version picker.