Harden release upload scripts
ci / test (push) Has been cancelled
ci / fuzz-smoke (push) Has been cancelled
ci / windows-client (push) Has been cancelled
ci / package-release (linux-x86_64, ubuntu-latest) (push) Has been cancelled
ci / package-release (macos-aarch64, macos-14) (push) Has been cancelled
ci / package-release (macos-x86_64, macos-13) (push) Has been cancelled
ci / package-release (windows-x86_64, windows-latest) (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
DuProcess
2026-06-22 01:42:17 -04:00
parent 149ea07edf
commit 44717e4956
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -102,6 +102,7 @@ delete_existing_asset() {
done
}
uploaded=0
for artifact in "$@"; do
if [ ! -f "$artifact" ]; then
continue
@@ -114,4 +115,10 @@ for artifact in "$@"; do
-X POST \
-F "attachment=@$artifact" \
"$api/releases/$release_id/assets?name=$name" >/dev/null
uploaded=$((uploaded + 1))
done
if [ "$uploaded" -eq 0 ]; then
echo "no release artifacts uploaded" >&2
exit 1
fi