Skip to content

Release runbook

Version bump

  • File: cmd/rig/version.go — set version to <version>.
  • Changelog: in the release commit, move ## [Unreleased] entries of CHANGELOG.md under ## [<version>] - <date> and add its compare link, before the tag.
  • Commit: release: <version> on a task/release-<version> branch; PR to main.
  • Wait: CI ci.yml green on the PR, then merge.
  • Skip when go run ./cmd/rig version on main already prints <version>.

Tag

  • git tag -a v<version> -m "<version>" on main's head, then git push origin v<version>; release.yml refuses a tag that does not match rig version.

Publish targets

Target Triggered by Workflow Secret it needs
GitHub release (draft, 5 binaries + SHA256SUMS + SHA256SUMS.sig) tag push release.yml RIG_SIGNING_KEY (Ed25519 seed, base64; make with go run ./tools/rigsign keygen <dir>)
GitHub release published gh release edit v<version> --draft=false --latest none (manual) none
rig-site rebuild GitHub release published site-dispatch.yml RIG_SITE_DISPATCH_TOKEN

Verify the published state

  • gh release view v<version> --json isDraft,assets --jq '.isDraft, [.assets[].name]' prints false and rig-{linux-amd64,linux-arm64,darwin-amd64,darwin-arm64,windows-amd64.exe}, SHA256SUMS, SHA256SUMS.sig.
  • gh release download v<version> -D <dir> to a temp dir, then go run ./tools/rigsign verify <dir> prints verified 5 assets.
  • go install github.com/AindriuB/rig/cmd/rig@v<version> in a temp GOBIN, then rig version prints <version>.
  • GOPROXY=https://proxy.golang.org GOPRIVATE= GONOPROXY= go list -m github.com/AindriuB/rig@v<version> prints github.com/AindriuB/rig v<version> (no fallback to direct).
  • gh run list -R AindriuB/rig-site --event repository_dispatch -L 1 --json workflowName,createdAt shows a pages run created after the release was published.

If a step fails

  • Do not delete or move a pushed tag. Fix forward with <version+patch>.

Compatibility

From 1.0.0 these stay stable within a major version: - command and subcommand names, and their flags; - exit codes and their meanings; - --json field names and types (fields may be added); - --format markdown output: sections and fields may be added, not removed or reordered; - the kit-task marker file format; - config keys, their scopes and meanings; - the workflow file format: a file that loads keeps loading.

A major bump removes or renames any of those, changes an exit code's meaning or a JSON field's type, makes a loading workflow file fail, or removes or reorders --format markdown sections or changes the kit-task marker format. A minor adds commands, flags, JSON fields, config keys or workflow keys. A patch fixes bugs. Other human-readable text output is not covered and may change in any release. The exceptions are the lines under "Stable text output" in design.md and the rig help --all text.