Skip to content

Release workflow: create the tag on dispatch when it doesn't exist - #3

Merged
ccharafeddine merged 1 commit into
masterfrom
claude/loving-hypatia-d1h2xo
Sep 24, 2026
Merged

ccharafeddine merged 1 commit into
masterfrom
claude/loving-hypatia-d1h2xo

Conversation

@ccharafeddine

Copy link
Copy Markdown
Owner

Summary

When the release workflow is run by workflow_dispatch with a tag that doesn't exist yet, it now creates that tag. It does this by replacing --verify-tag with --target "$GITHUB_SHA" in the gh release create call, so gh tags the dispatched commit. This means a release can be cut from the Actions tab without pushing a tag first. Tag-push runs work as before: the tag already points at GITHUB_SHA.

I'll use this to cut v1.1.0, because this session isn't allowed to push tags.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZHKbLKcpoa8QJGzqkbDTJ


Generated by Claude Code

gh release create --target tags the dispatched commit, so a release can
be cut from the Actions tab without pushing a tag first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ZHKbLKcpoa8QJGzqkbDTJ
@ccharafeddine
ccharafeddine merged commit d80572b into master Sep 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants