Repository navigation
ci(release): a Run workflow button that cuts the tag from stack.yaml - #21
Merged
Merged
Conversation
release.yml ran only on a pushed v* tag, so a release needed someone who can push tags. It now also runs from Actions -> Release -> Run workflow: the version comes from stack.yaml on main, the run creates the v<version> tag and the GitHub release on the commit it ran from (gh release create --target), then verifies and publishes exactly as a tag push does. A dispatched run refuses a ref other than main, and refuses a version whose tag already points at another commit (stack.yaml not bumped); a tag on the same commit is a re-run and carries on. A concurrency group keeps two releases from racing. Tag pushes behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BfmHkwWeA1oPJGBNF3QSQH
ruehowl
marked this pull request as ready for review
October 27, 2026 07:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
release.ymlonly ran when someone pushed av*tag, so cutting a release needed someone who can push tags. 0.20.1 (#20, theturbo-packageguard fix) is merged but unreleased for exactly that reason: the session that merged it gets HTTP 403 on a tag push. lumen already cuts its baseline tags this way, from a dispatchedtag.yml.What
release.ymlgains a Run workflow button (workflow_dispatch, no inputs):metadata.versioninstack.yaml, and the tag isv<version>;gh release create --target "$GITHUB_SHA"), then verifies, publishes and confirms the package exactly as a tag push does;main;stack.yamlwasn't bumped. A tag on the same commit is a re-run of the same release and carries on, matching how a tag push re-runs;concurrency: releasegroup stops two releases from racing.Tag pushes behave as before. The one change on that path is
--target "$GITHUB_SHA", which is the commit the tag already points at.README.md's release flow anddocs/verification.md's release section describe both ways to start a release.Checked
The version step's script, taken straight from the YAML, run on every path:
main, no tag yetRELEASE_TAG=v0.20.1Run the release from mainv0.20.1already on another commitalready points at 24895a3 … Bump metadata.versionv0.20.1matchingstack.yamlv0.20.2not matchingAfter merge
I'll run Release from
mainto cutv0.20.1and publishghcr.io/sourceplane/stack-tectonic:0.20.1.Generated by Claude Code