Skip to content

fix: a moved tag left its release as an unpublished draft - #189

Merged
raspbeguy merged 1 commit into
mainfrom
fix/publish-moved-tag-release
Aug 14, 2026
Merged

fix: a moved tag left its release as an unpublished draft#189
raspbeguy merged 1 commit into
mainfrom
fix/publish-moved-tag-release

Conversation

@raspbeguy

Copy link
Copy Markdown
Member

Found while verifying a retag on a sibling project, whose release job is a copy of this one. Deleting a tag in order to move it reverts its GitHub release to a draft. gh release view succeeds on a draft, so the if ! gh release view "$TAG" guard treats it as already released, skips creation, and uploads the rebuilt apk and SBOM into a release that stays invisible. Nothing fails, and the feed keeps serving the previous version because gh release list does not return drafts.

gh release edit "$TAG" --draft=false after the uploads is the documented way to publish a draft, and it is a no-op on a release that was never one. The prerelease flag is untouched, so an rc tag stays a prerelease and stays out of the feed.

This has not bitten a uapi release. It is going in here because the retag procedure in the release process is the trigger, the job is identical, and the failure is silent by construction.

Wire surface: none. Release plumbing only, no runtime code and no schema change, so no semver impact.

Verified against a real device, or only CI? Neither, and it does not need either. The behaviour was observed on a real GitHub release in the sibling project: a release left as isDraft=true after a tag deletion, holding a rebuilt asset, while the feed served the older version. The fix is the documented inverse of that state.

LuCI checked? Not applicable, this is release tooling.

@raspbeguy
raspbeguy merged commit 7b17dac into main Aug 14, 2026
6 checks passed
@raspbeguy
raspbeguy deleted the fix/publish-moved-tag-release branch August 14, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant