Repository navigation
ci(release): one-click release workflow with the built-in token - #55
Merged
Merged
Conversation
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 26, 2026 9:50p.m. | Review ↗ | |
| JavaScript | Oct 26, 2026 9:50p.m. | Review ↗ | |
| Shell | Oct 26, 2026 9:50p.m. | Review ↗ | |
| Secrets | Oct 26, 2026 9:50p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
|
[Critical impact] The PR appears safe to merge; no new actionable issue was found. Reviews (7) · Last reviewed commit: "docs(release): releases up to 0.5.1 were..." · Reviewed by Greptile |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 803b903 | Commit Preview URL Branch Preview URL |
Oct 26 2026, 09:49 PM |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…rsions strictly Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…sumable landing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…le OIDC subject Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
sweepies
force-pushed
the
ci/one-click-release
branch
from
October 26, 2026 21:48
49a454a to
803b903
Compare
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
Replaces the bump PR → merge → hand-pushed tag → tag-triggered release with one manually dispatched Release run that uses only the built-in
GITHUB_TOKEN:The Land job posts its own "CI result" on the bump commit
Main's ruleset (25563236) has no pull-request rule. It blocks deletion and non-fast-forward pushes, and requires a successful CI result check from the GitHub Actions app (integration 15368), not strict. A check run created with the built-in token comes from that same app, so the workflow can meet the rule itself, with no bypass and no new token.
What the Land job does:
release/vX.Y.Zbranch, so GitHub has the commit.CI resultcheck run on the bump commit itself. The summary names the parent and links the release run.mainand pushes the annotated tag in one atomic push.CI never runs on the bump commit. Pushes with the built-in token start no workflows, so
[skip ci]isn't needed.Why vouching for it is sound. Two checks make that self-posted result true:
mainand that commit's own CI result check run, from GitHub Actions, concludedsuccess. The bump commit is made directly on that commit, and the final push tomainis a fast-forward. If anything else lands onmainmeanwhile, the push is refused.Cargo.toml,Cargo.lock,crates/*/Cargo.toml,conformance/Cargo.toml,crates/cli/tests/help.txt,README.md, and the docs pages.On top of that, the run has itself built that exact commit for four platforms, run every binary, and built and run the image before it posts the check.
If Sweepy would rather have GitHub enforce this than have the workflow attest it, the alternative is a bypass: Settings → Rules → Rulesets → main → Bypass list → Add bypass → GitHub Actions → Always. Then the check-run step can go.
The run
Guard: the version must be a plain
X.Y.Zlater than the latest tag and not tagged yet, plus the main/CI check above. Dry runs may start from any branch whose head passed CI.Bump: the new
mise run release:bump <version>sets:Cargo.lock(cargo update --workspace);@vX.Y.Zand@X.Y.Zdoc pins;docs:cliandhelp:snapshotoutput.Run locally for 0.5.1, its output was byte-identical to chore: 0.5.1 #54, the last hand-made bump. The commit goes to every later job as a git bundle, so all of them build the same commit.
Build, smoke and image: the existing jobs, now checking out the bump commit. They check the exact version, and the image pushes by digest only.
Land: runs only after everything passes. It does the steps above, then gives the image its
X.Y.Zandlatesttags.latestis only applied when this is the newest release. If a later step fails, re-running the failed jobs carries on.Publish: the release and packslip (with explicit
tagandcommit), then communique's notes as before.The
v*tag trigger is gone. The workflow creates the tag, and a tag pushed with the built-in token wouldn't start another workflow anyway.Notes and signatures
repo:sweepies@7191851/*:ref:refs/{tags/v*,heads/main}, in GitHub's immutable subject format, so the notes step works from a run onmain.release.yml@refs/heads/main. mise's signer continuity ignores the ref, so installs carry on. A config that pinsworkflow = "release.yml"(tag refs only) would refuse them, and the docs say so.Docs
The new page
internals/releasing.mdcovers the run, dry runs, the self-posted check, signatures and notes. The server guide no longer mentions prereleases, which aren't supported. Nothing described releasing before.Verification
mise run lint:actions(actionlint + shellcheck) and zizmor are clean.release:bump 0.5.1matches chore: 0.5.1 #54 exactly.workflow_dispatchon this branch were green through guard, bump, both builds, four smoke tests and the image, each reportingpatchula 0.5.1.Not testable before a real release: the push to
mainpast the required check, the image tagging from its digest, and signing and notes under a dispatch ref.