Port the release workflow from basecamp-cli
Merged
JE
3mo ago+192+192+012345678901234567890123456789-61-61-01234567890123456789
Stacked on #193.
What
testjob at the tag SHA (fetch-depth: 0):make check-lint-lockstep fmt-check vet lint test tidy-check,TestSurfaceSnapshot, race, govulncheck, and the surface-compat check againstPREV_TAG(moved out of thereleasejob).release.shwill later push a release-prep commit before tagging, so the PR gate's SHA is not the release SHA.test.ymldropsworkflow_call.releasejob: macOS secret preflight gated ongithub.repository == 'basecamp/hey-cli'with::error::; "Resolve previous stable tag" āGORELEASER_PREVIOUS_TAGso stable notes diff against the last stable tag, not the last rc; attest v4.2.2 kept; Homebrew tap token viaclient-id.macos-verifymatrix (amd64/arm64): Team ID2WNYUYRS7G, hardened-runtime flag;spctlis telemetry only.sync-skills: stable-only,issues: write, notifies viascripts/notify-issue.sh --label skills-syncon this repo (label dedup, fails closed) instead of the inline title search againstbasecamp/skills.aur-publishunchanged.make test-release: snapshot with--skip=publish,sign, MACOS_/SM_ blanked.
Not ported on purpose: headless-probe (no hey equivalent), Windows signing (next PR, after SM_* land), nix-verify (Nix PR).
Verified
actionlint + zizmor clean, lockstep passes with both pinned steps, make test-release succeeds locally (10 SBOMs, checksums.txt).
Summary by cubic
Ports the release workflow from basecamp-cli and runs the gate against the exact tag SHA so we test what we ship. Previously the release reused the PR gate; now it runs a full suite at the tag, enforces macOS signing on the canonical repo, verifies macOS artifacts post-release, and diffs stable notes against the last stable tag.
- Test (tag SHA): runs lint lockstep, fmt-check, vet, lint, unit tests, tidy-check, TestSurfaceSnapshot, race, govulncheck, and CLI surface-compat against the previous tag;
test.ymldropsworkflow_call. - Release: generates a Homebrew tap token via GitHub App
client-id, fails fast onbasecamp/hey-cliwhen macOS signing secrets are missing, resolvesGORELEASER_PREVIOUS_TAGto the last stable tag, and depends on Test and Security. - macOS verify: matrix (amd64/arm64) asserts Team ID
2WNYUYRS7Gand hardened runtime; notarization check is advisory (telemetry only). - Skills sync: stable tags only; on failure, files an issue on this repo via
scripts/notify-issue.sh --label skills-syncand tells operators to rerun failed jobs in the Release run. - Makefile:
make test-releaseruns GoReleaser as a snapshot with signing disabled and skips SBOMs whensyftis absent. - Not ported yet: Windows signing and Nix verify.
Rollout
- Required on
basecamp/hey-cli:MACOS_SIGN_P12,MACOS_SIGN_PASSWORD,MACOS_NOTARY_KEY,MACOS_NOTARY_KEY_ID,MACOS_NOTARY_ISSUER_ID, plusvars.RELEASE_CLIENT_IDandsecrets.RELEASE_APP_PRIVATE_KEY. - Releases are supported only on the canonical repo; the workflow fails fast there if macOS signing secrets are missing.