From e5b419920e7c642ec6ef2041f0529b8a409faa7b Mon Sep 17 00:00:00 2001 From: Qiufeng Date: Mon, 17 Aug 2026 18:04:21 +0800 Subject: [PATCH] fix: retry Gitea release uploads --- scripts/publish-gitea-release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/publish-gitea-release.sh b/scripts/publish-gitea-release.sh index e20e695..7a45374 100755 --- a/scripts/publish-gitea-release.sh +++ b/scripts/publish-gitea-release.sh @@ -48,6 +48,7 @@ request() { local method=$1 url=$2 output=$3 input=${4:-} status local args=( --silent --show-error --proto '=https' --tlsv1.2 + --connect-timeout 15 --max-time 600 --retry 5 --retry-all-errors --retry-delay 2 --request "$method" --header "@$AUTH_HEADER" --output "$output" --write-out '%{http_code}' ) @@ -99,6 +100,7 @@ for name in "${ASSETS[@]}"; do >> "$WORK/expected-assets.jsonl" encoded_name=$(jq -rn --arg value "$name" '$value | @uri') upload_status=$(curl --silent --show-error --proto '=https' --tlsv1.2 \ + --connect-timeout 15 --max-time 1800 --retry 6 --retry-all-errors --retry-delay 2 \ --header "@$AUTH_HEADER" \ --form "attachment=@$path;type=application/octet-stream" \ --output "$WORK/upload.json" --write-out '%{http_code}' \