From 1b96d5fc86a59c634fb6389f8dfe922b345f9ea3 Mon Sep 17 00:00:00 2001 From: akemmanuel Date: Sat, 1 Aug 2026 13:51:15 -0300 Subject: [PATCH] fix(release): upload one merged macOS manifest --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f4a574..a086e9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -294,4 +294,10 @@ jobs: fi args=("$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --generate-notes) [[ "$GITHUB_REF_NAME" == *-* ]] && args+=(--prerelease) - gh release create "${args[@]}" candidate/SHA256SUMS.txt $(find candidate/artifacts -type f ! -name 'latest-mac-*.yml' -print) + mapfile -d '' assets < <( + find candidate/artifacts -type f ! -name 'latest-mac*.yml' -print0 | sort -z + ) + # Both architecture jobs emit latest-mac.yml. Upload only the merged manifest produced + # in desktop-mac-x64 so GitHub never receives two assets with the same basename. + assets+=(candidate/artifacts/desktop-mac-x64/latest-mac.yml) + gh release create "${args[@]}" candidate/SHA256SUMS.txt "${assets[@]}"