fix(ci): prevent duplicate draft releases in publish workflow#466
Merged
fix(ci): prevent duplicate draft releases in publish workflow#466
Conversation
The matrix build jobs (arm64 + x64) each called electron-builder --publish=always concurrently, causing a race where both created separate draft releases. Switches to --publish=never with artifact passing and a single publish job that merges latest-mac.yml and creates one draft release. Also adds Windows build to the pipeline.
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
electron-builder --publish=always, creating two separate draft releases instead of one--publish=neverwith GitHub Actions artifact passing and a singlepublishjob that mergeslatest-mac.ymland creates one unified draft releaseContext
v0.1.0 created two releases: published one had only x64 assets, orphaned draft had only arm64 assets. The arm64 assets have been manually moved to the published release.
Test plan
v0.1.1-rc.1) and verify only one draft release is createdlatest-mac.ymlcontains file entries for both arm64 and x64