Repository navigation
ci(docs): deploy GitHub Pages from a separate job - #62
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The documentation build and deployment job split has no active review issues.
No open issues 🎉
What changed in this PR
Separates documentation building from GitHub Pages deployment to address intermittent artifact lookup failures and allow failed deployments to be retried without uploading duplicate artifacts.
Changes:
- Renames the existing job to
build, retaining documentation generation and artifact upload. - Adds a dependent
deployjob with the GitHub Pages environment and deployment step. - Documents the reason for separating the jobs.
| File | Description |
|---|---|
.github/workflows/docs.yml |
Splits documentation build and Pages deployment into dependent jobs. |
Review effort: Balanced
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.
Split the docs workflow into build and deploy jobs. Running upload-pages-artifact and deploy-pages in the same job intermittently fails with "No artifacts named github-pages were found" because the artifact list is read before the new artifact is visible (actions/deploy-pages#451), and re-running the job then fails on duplicate artifacts.