Skip to content

Deploy Pages docs within the release workflow - #1012

Merged
Jordan Olshevski (jveski) merged 10 commits into
mainfrom
docs/release-pages-staging
Oct 28, 2026
Merged

Jordan Olshevski (jveski) merged 10 commits into
mainfrom
docs/release-pages-staging

Conversation

@jveski

@jveski Jordan Olshevski (jveski) commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Build and deploy Pages docs inside the release publishing workflow after a latest release is published, using that release tag. Remove the standalone docs workflow and the proposed staging site. Keep the existing Pages site and use only official GitHub actions for docs deployment.

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.

🟡 Changes recommended

Unresolved workflow issues can break staging custom domains, silently skip production docs updates on API failures, and block subsequent cluster upgrades while awaiting Pages approval.

3 open issues
What changed in this PR

This PR separates production documentation from unreleased changes on main, while adding an optional staging site in a separate GitHub Pages repository.

Changes:

  • Deploy production docs from a validated latest stable release tag, including releases published by the upgrade workflow.
  • Add optional staging deployment with separate credentials, a configurable base URL, and noindex metadata.
  • Document deployment setup and add workflow validation tests.
File Description
hack/​release/​docs_workflow_test.go Tests production triggers, permissions, release integration, and tag validation.
hack/​release/​docs_staging_workflow_test.go Tests staging isolation, settings, build options, and key requirements.
docs/​layouts/​partials/​head.html Adds conditional noindex metadata.
docs/​hugo.toml Defaults noindex to false.
docs/​content/​guides/​gantry.md Uses a Hugo reference for base-path-aware linking.
.golangci.yaml Preserves GitHub Actions’ cancelled() spelling in tests.
.github/​workflows/​release-upgrade.yaml Calls the docs workflow after publishing a latest release.
.github/​workflows/​docs.yaml Validates release tags and builds production docs from the selected release.
.github/​workflows/​docs-staging.yaml Adds optional main-branch publishing to a separate repository.
.github/​docs-deployment.md Documents production environment rules and staging setup.

Review effort: Balanced

Comment thread .github/workflows/docs-staging.yaml Outdated
Comment thread .github/workflows/docs.yaml Outdated
Comment thread .github/workflows/release-upgrade.yaml Outdated
A reusable call held the deploy-unbounded-stable concurrency group while
the github-pages environment awaited approval, blocking later cluster
upgrades. Dispatch main's docs.yaml with only actions: write instead.

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.

🟡 Changes recommended

An ineligible release event can replace a pending latest-stable Pages deployment and then skip publishing, leaving production outdated with no update queued.

1 open issue
3 resolved since last review

Review effort: Balanced

Comment thread .github/workflows/docs.yaml Outdated

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 supplied review evidence identifies no active issues requiring changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jveski
Jordan Olshevski (jveski) marked this pull request as ready for review October 28, 2026 17:54
@jveski
Jordan Olshevski (jveski) requested a review from a team October 28, 2026 17:54
@jveski Jordan Olshevski (jveski) changed the title Deploy production docs only on releases and add optional staging Deploy Pages docs from the release pipeline Oct 28, 2026
@jveski
Jordan Olshevski (jveski) requested a balanced review from Copilot October 28, 2026 18:00

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.

🟡 Changes recommended

The docs workflow’s packaged Hugo lacks the Page.Store API required by the current templates, causing release-tag builds to fail instead of deploying.

1 open issue

Review effort: Balanced

Comment thread .github/workflows/docs.yaml Outdated
@jveski Jordan Olshevski (jveski) changed the title Deploy Pages docs from the release pipeline Deploy Pages docs within the release workflow Oct 28, 2026
@jveski
Jordan Olshevski (jveski) requested a balanced review from Copilot October 28, 2026 18:18

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

No active review issues remain for the release-tag-based documentation deployment changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@jveski
Jordan Olshevski (jveski) added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit a602cc8 Oct 28, 2026
40 checks passed
@jveski
Jordan Olshevski (jveski) deleted the docs/release-pages-staging branch October 28, 2026 19:00
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.

3 participants