feat: workflow improvements for immutable releases#2107
Open
mosteo wants to merge 4 commits intoalire-project:masterfrom
Open
feat: workflow improvements for immutable releases#2107mosteo wants to merge 4 commits intoalire-project:masterfrom
mosteo wants to merge 4 commits intoalire-project:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts Alire’s release automation to avoid relying on GitHub’s “published release” event (which requires leaving draft mode), by triggering release builds from a pushed semantic-version tag and creating a draft release only after successful builds—reducing the risk of notifying watchers or getting stuck with immutable release assets.
Changes:
- Update the release CI workflow to trigger on
pushofvX.Y.Ztags instead ofrelease: published. - Create a draft GitHub Release automatically (on successful tag CI), then upload built assets to that draft.
- Update
RELEASING.mdto document the new tag-push + draft-release publishing process.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
RELEASING.md |
Documents the updated release procedure: push tag → draft release created → edit → publish. |
.github/workflows/ci-release.yml |
Switches release triggering to tag pushes and creates a draft release prior to uploading release assets. |
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.
Github requires a release to be not a draft to trigger actions. This can be a quagmire if some build fails, as release watchers will have been notified, immutable releases don't allow uploading assets for manual fixing, etc.
With this patch, we instead trigger release actions by pushing a tag. Once builds succeed, the release is automatically created in draft mode, which doesn't yet notify anybody and allows fixing the release if something goes wrong. We manually publish the draft once everything is OK.
Tested in https://github.com/mosteo/alire/actions/runs/25383957370