ci: add release workflow to promote test → main#106
Merged
Conversation
Port gittensor's Release workflow. main advances only by fast-forward to test (manual workflow_dispatch), keeping main and test on identical commits — no merge/squash/rebase, so the two branches never diverge. Replaces the "Promote test -> main" PR flow, which rewrote commits and caused main and test to drift apart. Requires a RELEASE_TOKEN repo secret (a PAT with contents+workflows write that can push to main).
entrius
approved these changes
May 16, 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.
What
Ports gittensor's
release.yml— a manually-triggered (workflow_dispatch) workflow that promotestesttomainby fast-forward:mainis an ancestor oftest(refuses with "Reconcile manually" otherwise).release-<timestamp>).git push origin test:main— fast-forward, then pushes the tag.DISCORD_WEBHOOKsecret).Supports a
dry_runinput that previews without pushing.Why
das-github-mirror had no release workflow and promoted
test → mainvia "Promote test -> main" PRs. Every PR merge (squash/rebase/merge-commit) rewrites or adds commits, somainandtestdrifted apart (they had diverged:testahead 16,mainahead 6). A fast-forward keepsmainandteston identical commits — nothing is ever rewritten.Requires
A
RELEASE_TOKENrepo secret — a PAT with Contents: write + Workflows: write that can push tomain.DISCORD_WEBHOOKis optional.