fix(release): use name= query param and attachment field for multipart upload
This commit is contained in:
1 parent
92e4a99e11
commit
fa7e50b0db
1 file changed
+2
-2
@@ -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','?'))"
|
||||
|
||||
Reference in new issue
Block a user