Skip to content

ci: add release workflow to promote test → main#106

Merged
entrius merged 1 commit into
testfrom
chore/add-release-workflow
May 16, 2026
Merged

ci: add release workflow to promote test → main#106
entrius merged 1 commit into
testfrom
chore/add-release-workflow

Conversation

@anderdc
Copy link
Copy Markdown
Collaborator

@anderdc anderdc commented May 16, 2026

What

Ports gittensor's release.yml — a manually-triggered (workflow_dispatch) workflow that promotes test to main by fast-forward:

  1. Verifies main is an ancestor of test (refuses with "Reconcile manually" otherwise).
  2. Tags the release (release-<timestamp>).
  3. git push origin test:main — fast-forward, then pushes the tag.
  4. Optional Discord notification (skipped if no DISCORD_WEBHOOK secret).

Supports a dry_run input that previews without pushing.

Why

das-github-mirror had no release workflow and promoted test → main via "Promote test -> main" PRs. Every PR merge (squash/rebase/merge-commit) rewrites or adds commits, so main and test drifted apart (they had diverged: test ahead 16, main ahead 6). A fast-forward keeps main and test on identical commits — nothing is ever rewritten.

Requires

A RELEASE_TOKEN repo secret — a PAT with Contents: write + Workflows: write that can push to main. DISCORD_WEBHOOK is optional.

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 entrius merged commit d7cfe2a into test May 16, 2026
2 checks passed
@entrius entrius deleted the chore/add-release-workflow branch May 16, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants