Skip to content

feat: workflow improvements for immutable releases#2107

Open
mosteo wants to merge 4 commits intoalire-project:masterfrom
mosteo:feat/release-by-tag
Open

feat: workflow improvements for immutable releases#2107
mosteo wants to merge 4 commits intoalire-project:masterfrom
mosteo:feat/release-by-tag

Conversation

@mosteo
Copy link
Copy Markdown
Member

@mosteo mosteo commented May 7, 2026

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

@mosteo mosteo marked this pull request as ready for review May 8, 2026 09:57
Copilot AI review requested due to automatic review settings May 8, 2026 09:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 push of vX.Y.Z tags instead of release: published.
  • Create a draft GitHub Release automatically (on successful tag CI), then upload built assets to that draft.
  • Update RELEASING.md to 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.

@mosteo mosteo requested a review from a team May 8, 2026 10:07
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.

2 participants