Skip to content

feat: gate root docs deploys on releases, serve main under /preview/ - #234

Merged
rayakame merged 4 commits into
mainfrom
docs/release-gated-deploy
Jul 30, 2026
Merged

feat: gate root docs deploys on releases, serve main under /preview/#234
rayakame merged 4 commits into
mainfrom
docs/release-gated-deploy

Conversation

@rayakame

Copy link
Copy Markdown
Owner

The docs root now only deploys on a release (or manual dispatch), while the current state of main lives at /preview/ and PR previews stay as they are - both noindexed.

The root site now deploys only from a release (the release workflow
dispatches the docs workflow at the tag, since GITHUB_TOKEN-created
releases cannot fire the release trigger) or a manual dispatch. Docs
pushes to main deploy to /preview/ instead, and both preview flavors
emit a robots noindex meta so they never compete with the root site
in search results.
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-30 23:45 UTC

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rayakame

Copy link
Copy Markdown
Owner Author

@coderabbitai full-review

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

@rayakame: Re-running a full review of PR #234, including the docs deployment and preview-routing changes.

✅ Action performed

Full review finished.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Documentation deployment now responds to published releases and manual dispatches for production, with release workflows dispatching the documentation workflow at the release tag. Main branch builds deploy to a preserved preview directory, while pull-request and main previews receive noindex, nofollow robots metadata. Production cleanup preserves both preview directory types.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes gating root documentation deployments on releases and serving main under /preview/.
Description check ✅ Passed The description accurately explains the release-only root deployment, main preview path, and noindex behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/docs.yml:
- Around line 105-108: Disable the default dependency/build cache in the
actions/setup-go step identified by go-version-file: docs/go.mod by setting its
cache option to false, while leaving Go version setup unchanged. Ensure the
privileged documentation deployment job cannot restore or share setup-go cache
entries with the unprivileged PR-preview job.

In @.github/workflows/release.yml:
- Around line 107-114: Update the “Deploy docs for the release” step to pass
steps.latest.outputs.output through an environment variable, then reference that
variable in the gh workflow run command instead of interpolating the GitHub
expression directly in run. Preserve the existing docs.yml dispatch and
release-tag ref behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2c19e121-5551-43e3-a5cc-0f6ffae2b8c9

📥 Commits

Reviewing files that changed from the base of the PR and between 3b2dcdf and c5a8641.

📒 Files selected for processing (3)
  • .github/workflows/docs.yml
  • .github/workflows/release.yml
  • docs/layouts/_partials/custom/head-end.html

Comment thread .github/workflows/docs.yml
Comment thread .github/workflows/release.yml Outdated
rayakame added 2 commits July 31, 2026 01:29
The release tag predates the pin-update PR, so the root deploy at the
tag still shows the previous release's wasm url/sha in its examples.
Deploy again from main when the release/update-readme-* branch merges;
main is then exactly the tag plus the pin commit.
@rayakame
rayakame merged commit 60cf450 into main Jul 30, 2026
25 checks passed
@rayakame
rayakame deleted the docs/release-gated-deploy branch July 30, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant