Repository navigation
add a manual release workflow - #112
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
|
Claude finished @adssib's task in 3m 8s —— View job ✅ Ready to merge. The Release workflow fails closed, refuses the edge cases it should, uses only
Rules
BugsNone found. I checked:
VerifiedThese ran locally on the checkout I started with (
CI on the current head I couldn't run Non-blocking
|
e58b6ee to
bcb4817
Compare
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| TAG: ${{ steps.version.outputs.tag }} | ||
| run: gh release create "$TAG" --verify-tag --generate-notes --title "$TAG" |
There was a problem hiding this comment.
Non-blocking: if this step fails after the tag push succeeds (a GitHub API error, for example), the run leaves a tag with no release. Re-running won't fix it, because the next version step refuses when HEAD is already tagged. You could add a one-liner to CONTRIBUTING's Releasing section: "if the tag exists but the release doesn't, run gh release create <tag> --verify-tag --generate-notes". That still follows the "never move a tag" rule.
What this changes
Releases become a button. A new Release workflow (
.github/workflows/release.yml), run by hand from Actions → Release → Run workflow, tagsmain's HEAD with the next version and publishes a GitHub release with generated notes. Nothing is tagged on push.workflow_dispatchonly, inputbump=patch(default) orminor.v1.0.0and later majors are deliberately not an option: that's a decision a maintainer makes and tags by hand.vX.Y.Ztag (v0.1.0today →v0.1.1/v0.2.0); no tag yet →v0.1.0.main, whenmain's HEAD already has a tag, or when the computed tag already exists.python3 scripts/leak_guard.py --all, gitleaks over the whole history (the same pinned, checksum-verified v8.30.1 asCI_leak_guard),go build ./...,go vet ./...,gofmt -l .andgo test -race -count=1 ./...(Go fromgo.mod). Any failure ends the run before a tag exists.GITHUB_TOKEN, andgh release create <tag> --verify-tag --generate-notes.permissions: contents: writeonly;concurrency: release(a second run waits, never cancels); third-party actions pinned by commit SHA (actions/checkoutv7.0.1,actions/setup-gov7.1.0)..github/release.yml: release-notes categories by label: Plugins (plugin,enhancement), Fixes (bug), Docs (documentation), Other changes. I created thepluginlabel.Releaserow in the CI table; README a short Releases section; AGENTS.md: agents never tag or release, a maintainer runs the Release workflow.Checklist
docs/plugins.md. Not applicable: no plugin added, changed or removed.git commit -s, DCO)testdata/README.mdlists each file. Not applicable.providers/<api>.md. Not applicable.env.Get/kit/. Not applicable: no Go code changed.go build ./... && go vet ./... && gofmt -l . && go test -race ./...pass locallypython3 scripts/leak_guard.py --allpasses)Notes for the reviewer
yaml.safe_loadandactionlint(clean). The version logic was run locally against the current tags (v0.1.0→v0.1.1patch,v0.2.0minor). The workflow itself hasn't run: it can only be run after merge, by a maintainer.github-actions[bot]; the tag message names who ran the workflow.GITHUB_TOKENdon't trigger other workflows (none listen for them).🤖 Generated with Claude Code