Skip to content

ci(docs): deploy GitHub Pages from a separate job - #62

Merged
javlor merged 1 commit into
mainfrom
ci/deploy-github-pages-separately
Nov 25, 2026
Merged

javlor merged 1 commit into
mainfrom
ci/deploy-github-pages-separately

Conversation

@javlor

@javlor javlor commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 deploy job 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

@javlor
javlor merged commit 2298b16 into main Nov 25, 2026
13 checks passed
@javlor
javlor deleted the ci/deploy-github-pages-separately branch November 25, 2026 10:44
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.

2 participants