File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,8 +186,8 @@ jobs:
186186 # (right after upload the state may be empty — log raw response for diagnostics)
187187 STATUS=""
188188 for i in $(seq 1 20); do
189- RAW=$(curl -sf -H "Authorization: Bearer $AUTH" \
190- "https://central.sonatype.com/api/v1/publisher/status?id=$DEPLOYMENT_ID" || echo "CURL_FAILED" )
189+ RAW=$(curl -s -w "\nHTTP:%{http_code}" -H "Authorization: Bearer $AUTH" \
190+ "https://central.sonatype.com/api/v1/publisher/status?id=$DEPLOYMENT_ID")
191191 echo "[$i/20] Raw status response: $RAW"
192192 STATUS=$(echo "$RAW" | jq -r '.deploymentState // empty' 2>/dev/null || echo "PARSE_FAILED")
193193 echo "[$i/20] Deployment state: $STATUS"
@@ -215,8 +215,8 @@ jobs:
215215
216216 for i in $(seq 1 30); do
217217 sleep 30
218- RAW=$(curl -sf -H "Authorization: Bearer $AUTH" \
219- "https://central.sonatype.com/api/v1/publisher/status?id=$DEPLOYMENT_ID" || echo "CURL_FAILED" )
218+ RAW=$(curl -s -w "\nHTTP:%{http_code}" -H "Authorization: Bearer $AUTH" \
219+ "https://central.sonatype.com/api/v1/publisher/status?id=$DEPLOYMENT_ID")
220220 STATUS=$(echo "$RAW" | jq -r '.deploymentState // empty' 2>/dev/null || echo "PARSE_FAILED")
221221 echo "[$i/30] State: $STATUS"
222222 [[ "$STATUS" == "PUBLISHED" ]] && break
Original file line number Diff line number Diff line change 1- # 0.21.39 (2026-04-17)
1+ # 0.21
22
33- Fixed Maven Central publication being skipped after upload
44
You can’t perform that action at this time.
0 commit comments