Skip to content

ci(release): one-click release workflow with the built-in token - #55

Merged
capy-ai[bot] merged 8 commits into
mainfrom
ci/one-click-release
Oct 26, 2026
Merged

capy-ai[bot] merged 8 commits into
mainfrom
ci/one-click-release

Conversation

@sweepies

@sweepies sweepies commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

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:

gh workflow run release.yml -f version=0.5.2                    # release
gh workflow run release.yml -f version=0.5.2 -f dry_run=true    # everything except push, tag, publish

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:

  1. Pushes the bump commit to a short-lived release/vX.Y.Z branch, so GitHub has the commit.
  2. Posts a successful CI result check run on the bump commit itself. The summary names the parent and links the release run.
  3. Fast-forwards main and pushes the annotated tag in one atomic push.
  4. Deletes the branch.

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:

  • The parent is main's green HEAD. The Guard job refuses unless the run is on main and that commit's own CI result check run, from GitHub Actions, concluded success. The bump commit is made directly on that commit, and the final push to main is a fast-forward. If anything else lands on main meanwhile, the push is refused.
  • The bump changes nothing but versions and generated files. The Bump job refuses its own commit if any path outside this list changed: 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.Z later 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:

    • the workspace version and the internal path-dependency pins;
    • the workspace entries in Cargo.lock (cargo update --workspace);
    • the @vX.Y.Z and @X.Y.Z doc pins;
    • the regenerated docs:cli and help:snapshot output.

    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.Z and latest tags. latest is 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 tag and commit), 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

  • Notes: the Infisical release identity already trusts repo:sweepies@7191851/*:ref:refs/{tags/v*,heads/main}, in GitHub's immutable subject format, so the notes step works from a run on main.
  • Signatures: packslip and the attestations are now signed from release.yml@refs/heads/main. mise's signer continuity ignores the ref, so installs carry on. A config that pins workflow = "release.yml" (tag refs only) would refuse them, and the docs say so.

Docs

The new page internals/releasing.md covers 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.1 matches chore: 0.5.1 #54 exactly.
  • Three dry runs via workflow_dispatch on this branch were green through guard, bump, both builds, four smoke tests and the image, each reporting patchula 0.5.1.

Not testable before a real release: the push to main past the required check, the image tagging from its digest, and signing and notes under a dispatch ref.

@deepsource-io

deepsource-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 98ae9df...803b903 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

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.

@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

RetriggerView in Greptile

[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

Comment thread .github/workflows/release.yml Resolved
Comment thread mise.toml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

sweepies and others added 7 commits October 26, 2026 21:48
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
sweepies force-pushed the ci/one-click-release branch from 49a454a to 803b903 Compare October 26, 2026 21:48
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 2ed4ae3 into main Oct 26, 2026
13 checks passed
@capy-ai
capy-ai Bot deleted the ci/one-click-release branch October 26, 2026 21:58
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.

1 participant