Refactor release workflow to use draft releases with explicit publish step - #82
Merged
Merged
Conversation
…plete downloads release-please now creates a draft release, matrix builds upload all artifacts to the draft, and a new publish-release job flips it to published only after all platforms complete. This ensures /releases/latest always points to a release with all assets attached. Also removes the polling loop from update-homebrew since the release is guaranteed to have all assets by the time that job runs. https://claude.ai/code/session_01JFUTfGHH9TLrwHE1Z6spVJ Signed-off-by: Claude <noreply@anthropic.com>
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.
Summary
This change refactors the GitHub Actions release workflow to create releases as drafts and explicitly publish them after all build artifacts are attached. This ensures that the
/releases/latestendpoint always returns a complete release with all assets.Key Changes
draftsetting fromfalsetotrueto create releases in draft staterelease_idoutput from release-please step to enable direct release manipulationreleaseIdparameter instead oftagNamefor uploading artifacts to the draft releasepublish-releasejob instead ofbuild-release, and removed the polling logic that waited for assets to appearImplementation Details
publish-releasejob usesactions/github-scriptto call the GitHub API and flip thedraftflag tofalsehttps://claude.ai/code/session_01JFUTfGHH9TLrwHE1Z6spVJ