Potential fix for canary artifacts missing

This commit is contained in:
Ashcon Partovi
2024-08-05 17:49:12 -07:00
parent cacbaba524
commit 3674493aa4

View File

@@ -146,6 +146,7 @@ function update_github_release() {
local version="$1"
local tag="$(release_tag "$version")"
if [ "$tag" == "canary" ]; then
sleep 5 # There is possibly a race condition where this overwrites artifacts?
run_command gh release edit "$tag" --repo "$BUILDKITE_REPO" \
--notes "This release of Bun corresponds to the commit: $BUILDKITE_COMMIT"
fi
@@ -188,12 +189,12 @@ function create_release() {
upload_s3_file "releases/$BUILDKITE_COMMIT" "$artifact" &
upload_s3_file "releases/$tag" "$artifact" &
upload_github_asset "$tag" "$artifact" &
wait
}
for artifact in "${artifacts[@]}"; do
upload_artifact "$artifact" &
upload_artifact "$artifact"
done
wait
update_github_release "$tag"
create_sentry_release "$tag"