ci(release): switch to v*.*.* tag trigger and add workflow_dispatch#739
Merged
nekomoto911 merged 1 commit intoJun 10, 2026
Merged
Conversation
- Auto-trigger only on `v*.*.*` tags (drops `gravity-mainnet-*` / `gravity-testnet-*` patterns). - Add `workflow_dispatch` input so a release can be re-run manually from the Actions UI against any existing `v*.*.*` tag. - Checkout step now follows the dispatched tag; Resolve tag step validates the pattern via regex for both push and dispatch paths.
Lchangliang
approved these changes
Jun 10, 2026
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.
Summary
Releaseworkflow is now scoped tov*.*.*tags only. The legacygravity-mainnet-*/gravity-testnet-*patterns are dropped — future releases follow a singlev<major>.<minor>.<patch>track.workflow_dispatchinput so a release can be re-run manually from the Actions UI against any existingv*.*.*tag (useful for retrying a failed upload or pushing the docker image for a tag whose initial run was interrupted).workflow_dispatch; onpush/pull_requestit falls back to the default ref.Resolve tagstep validates the pattern via a regex (^v[0-9]+\.[0-9]+\.[0-9]+) for both push and dispatch paths — acceptsv1.7.0,v1.7.0-rc1, etc., rejects anything that doesn't start with a SemVer-shaped prefix.Test plan
lint-workflows(actionlint) passes on this PR.if: github.event_name == 'pull_request') still runs build + stage assets + docker build (no push).main: open Actions → Release → Run workflow → enter a known existing tag (e.g.v0.5.0) and confirm the dispatch path resolves the tag, builds, and re-uploads assets to that release with--clobber.v1.7.0via GitHub UI Draft Release → Publish → confirm the push path triggers and the release receivesgravity_node,gravity_cli, their.sha256files, andghcr.io/galxe/gravity_node:v1.7.0.Notes
workflow_dispatchregistrations are only visible on the default branch's copy of the workflow file. So the UI button will not appear until this is merged intomain.gh release uploadstep — that contract is unchanged.