Compare commits
2
Commits
v2026.9.30
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86b24460b6 | ||
|
|
25083c8388 |
@@ -192,12 +192,15 @@ jobs:
|
|||||||
[ -n "$id" ] || { echo "::error::could not create the release"; exit 1; }
|
[ -n "$id" ] || { echo "::error::could not create the release"; exit 1; }
|
||||||
created=1
|
created=1
|
||||||
fi
|
fi
|
||||||
have="$(curl -fsS "${auth[@]}" "$API/releases/$id/assets" | jq -r '.[].name')"
|
# The uploads cross Cloudflare, which dropped 50 MB HTTP/2 uploads
|
||||||
|
# part-way for inbuxa-server v2026.9.30.1 (curl 92). HTTP/1.1, and retry.
|
||||||
|
retry=(--retry 5 --retry-all-errors --retry-delay 15)
|
||||||
|
have="$(curl -fsS "${retry[@]}" "${auth[@]}" "$API/releases/$id/assets" | jq -r '.[].name')"
|
||||||
for f in dist/*; do
|
for f in dist/*; do
|
||||||
n="$(basename "$f")"
|
n="$(basename "$f")"
|
||||||
if grep -qxF "$n" <<<"$have"; then echo "already attached: $n"; continue; fi
|
if grep -qxF "$n" <<<"$have"; then echo "already attached: $n"; continue; fi
|
||||||
echo "uploading $n"
|
echo "uploading $n"
|
||||||
curl -fsS -o /dev/null "${auth[@]}" --form "attachment=@$f" "$API/releases/$id/assets?name=$n" || {
|
curl -fsS --http1.1 "${retry[@]}" -o /dev/null "${auth[@]}" --form "attachment=@$f" "$API/releases/$id/assets?name=$n" || {
|
||||||
[ "$created" = 1 ] && curl -sS -o /dev/null "${auth[@]}" -X DELETE "$API/releases/$id"
|
[ "$created" = 1 ] && curl -sS -o /dev/null "${auth[@]}" -X DELETE "$API/releases/$id"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user