fix(release): use name= query param and attachment field for multipart upload
dev / Build debug APK (push) Successful in 32s
release / Build & attach release APK (push) Failing after 11m1s

This commit is contained in:
Incido Developer committed 2026-08-20 14:56:07 +12:00
1 parent 92e4a99e11
commit fa7e50b0db
1 file changed
+2 -2
+2 -2
View File
@@ -139,9 +139,9 @@ jobs:
echo "--- Uploading $APK ---"
ls -la "$APK_PATH"
UPLOAD=$(curl -s -X POST "$API/releases/$RELEASE_ID/assets" \
UPLOAD=$(curl -s -X POST "$API/releases/$RELEASE_ID/assets?name=$APK" \
-H "Authorization: token $GH_TOKEN" \
-F "files=@$APK_PATH" \
-F "attachment=@$APK_PATH" \
--max-time 600 --retry 3 --retry-delay 10)
echo "Upload response: $UPLOAD"
echo "$UPLOAD" | python3 -c "import sys,json; d=json.loads(sys.stdin.read()); print('Asset uploaded:', d.get('name','?'), d.get('id','?'))"