-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: separate release creation from uploading assets (#792)
Before this commit, the publish-release script handled both: - creating the draft release - uploading assets to the release with the intention that the first build job to finish would create the release with one asset, and each later job would upload an asset. The logic was like: if ! gh release view "${build_tag}"; then gh release create [...] else gh release upload [...] fi But this had a race. For example, if two build jobs finished at nearly the same moment, they could each create a draft release. This race was almost never encountered in practice, and was easily resolved by deleting a draft release and restarting a build job, but it's worth resolving. Add an initial build job to create a draft release that has no assets, and make the later build jobs only upload to that release. This fixes the race, and makes it easier to share logic between the native build jobs and the cross-compiling build jobs. Fixes: #551 Refs: #789
- Loading branch information
Showing
3 changed files
with
35 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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