ci: add release workflow for Mirus-tagged builds #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "maximus/ci/release-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
.forgejo/workflows/release.ymlfor the local Mirus Tech tea fork. Triggers on tags matchingv*+mirus.*, builds tea for linux/arm64 + linux/amd64, uploads tarballs + sha256 manifest as Forgejo Release assets.Tag scheme
v<upstream>+mirus.<n>— full SemVer 2.0 with build metadata.v0.14.0+mirus.1v0.14.0+mirus.2v0.14.1+mirus.1Why this scheme:
v0.14.0-mirus.1) sorts as a pre-release per SemVer (< v0.14.0). Wrong: we're patching, conceptually after.mirus-v0.14.0.1) loses semver compatibility —git tag --sort=v:refnamewon't sort it.+build metadata is the textbook SemVer answer for "same source, distribution-specific build". Forgejo URL-encodes+as%2Bautomatically.Asset naming
tea-<version>-linux-<arch>.tar.gz— the executable inside each tarball is justtea, drop-in compatible with anyone scripting against the binary. Distinguishing happens at the asset filename level.Job behaviour
$GITHUB_SHAis reachable fromorigin/main— tags pushed to non-main commits fail early.actions/setup-go@v5(proven on rpi5 by PR #1's CI fix).Prerequisites for first release
FORGEJO_TOKENrepo secret withwrite:repositoryscope. Provisioned manually; doesn't exist yet on this repo. The workflow fails fast if missing.How to cut a release
Then watch
actions/runson the fork. The release page lands at/public/tea/releases/tag/v0.14.0%2Bmirus.1.Not in this PR
FORGEJO_TOKENsecret (manual step, awaiting reviewer).RELEASING.mddoc — happy to add as a follow-up if useful.Closing in favour of model A architecture —
mainstays a clean upstream mirror, local patches accumulate on a long-livedrelease/mirusbranch, releases are tagged there. The replacement PR will targetrelease/mirus.Pull request closed