Release runbook¶
Version bump¶
- File:
cmd/rig/version.go— setversionto<version>. - Changelog: in the release commit, move
## [Unreleased]entries ofCHANGELOG.mdunder## [<version>] - <date>and add its compare link, before the tag. - Commit:
release: <version>on atask/release-<version>branch; PR tomain. - Wait: CI
ci.ymlgreen on the PR, then merge. - Skip when
go run ./cmd/rig versiononmainalready prints<version>.
Tag¶
git tag -a v<version> -m "<version>"onmain's head, thengit push origin v<version>;release.ymlrefuses a tag that does not matchrig 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]'printsfalseandrig-{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, thengo run ./tools/rigsign verify <dir>printsverified 5 assets.go install github.com/AindriuB/rig/cmd/rig@v<version>in a tempGOBIN, thenrig versionprints<version>.GOPROXY=https://proxy.golang.org GOPRIVATE= GONOPROXY= go list -m github.com/AindriuB/rig@v<version>printsgithub.com/AindriuB/rig v<version>(no fallback to direct).gh run list -R AindriuB/rig-site --event repository_dispatch -L 1 --json workflowName,createdAtshows apagesrun 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.