fix(release): tag only, before the cutover fires this for the first time #14
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/release-tag-only-installer"
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?
What & why
The same two faults as link#28, in the copy this repo's workflow was forked from — except this one has never run at all. The
edge → maincutover would have been its first execution, on the release that matters most.linkcarried that through six releases: itsCargo.tomlstill says0.1.0while its tags reachv1.1.1, because Gitea's release API creates the tag when it publishes. A green run proves nothing about a step that was never built.main, which is protected. The bundle job proved that today —pre-receive hook declined, twice. A first release must not depend on a write to a protected branch.So: the tag is the version, as in
servuo-plugins, whose tag pushes are proven against this protection. The version is still written intoCargo.tomlbefore building, so a released binary self-reports correctly; it is simply not committed back. The next version is computed from the newest tag, never from the file.Also corrected: the prerequisites header stated that
mainmust accept a direct push from the CI user ("disable branch protection for it, or add it as an exception"). It does not, and it should not — that line is replaced with the reason. Theif:guard against looping on a bump commit is kept but labelled vestigial.How it was tested
release.ymlparses, andgrep -c '\${{ *}}'is0for this file. The logic below the removed commit — tag reuse and the tag push — is unchanged.The honest limit is the same as link#28's: a release workflow is only really proven by a release. The difference here is that this one is about to get its first, and the failure it was heading for — a push rejected after the artifacts were built — is exactly the kind that leaves a half-published state.
Related
Checklist
AI-assisted contributions (required)
Claude Code (Opus 5). I have reviewed and understand every change, and take responsibility for it. AI-authored commits are marked with aCo-Authored-Bytrailer.License
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.