ci: allow cutting a release via workflow_dispatch#7
Merged
Conversation
The release workflow previously triggered only on a pushed `v*` tag. Add a `workflow_dispatch` trigger with a `version` input so a release can also be cut manually (from the Actions UI or the API) without pushing a tag — the runner's GITHUB_TOKEN creates the tag and release via action-gh-release. A "Resolve version" step derives the version from the dispatch input or the tag ref, and `tag_name` is set explicitly so both paths behave identically. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E11t2fuxGyKayRSL3Yu5SE
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.
Adds a
workflow_dispatchtrigger (with aversioninput) to the release workflow so a release can be cut without pushing av*tag — the Actions runner'sGITHUB_TOKENcreates the tag and release viaaction-gh-release.This unblocks cutting v1.1.0 (the just-merged agent-friendly release, #6) from environments where tag pushes aren't permitted, and is a generally useful addition: releases can now also be triggered from the Actions UI.
What changed
on:now includesworkflow_dispatchwith a requiredversioninput (e.g.v1.1.0), alongside the existingpush: tags: ['v*'].tag_nameis set explicitly so the tag-push and manual-dispatch paths behave identically (on dispatch,action-gh-releasecreates the tag at the checked-outmasterSHA).No change to the build matrix, packaging, checksums, or release-notes generation.
🤖 Generated with Claude Code
Generated by Claude Code