-
-
Save alvareztech/95d57b14cd8da69472ae6af4660c27fe to your computer and use it in GitHub Desktop.
AppCenter script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPLOAD=$(curl \ | |
-X POST --header 'Content-Type: application/json' \ | |
--header 'Accept: application/json' \ | |
--header 'X-API-Token: dbba7813bdefb700f087b37aa175921ad7171637' \ | |
'https://api.appcenter.ms/v0.1/apps/bootcamp.mobile.jala-gmail.com/Eva-CE/release_uploads') | |
echo "Upload response: $UPLOAD" | |
UPLOAD_ID=$(echo $UPLOAD | jq --raw-output '.upload_id') | |
echo "Upload ID: $UPLOAD_ID" | |
UPLOAD_URL=$(echo $UPLOAD | jq --raw-output '.upload_url') | |
echo "Upload URL: $UPLOAD_URL" | |
echo "APK uploading..." | |
curl -F "ipa=@app/app-debug22.apk" "$UPLOAD_URL" | |
RELEASE=$(curl \ | |
-X PATCH \ | |
--header 'Content-Type: application/json' \ | |
--header 'Accept: application/json' \ | |
--header 'X-API-Token: dbba7813bdefb700f087b37aa175921ad7171637' \ | |
-d '{ "status": "committed" }' \ | |
"https://api.appcenter.ms/v0.1/apps/bootcamp.mobile.jala-gmail.com/Eva-CE/release_uploads/$UPLOAD_ID") | |
RELEASE_URL=$(echo $RELEASE | jq --raw-output '.release_url') | |
echo "Release URL: $RELEASE_URL" | |
curl \ | |
-X PATCH \ | |
--header 'Content-Type: application/json' \ | |
--header 'Accept: application/json' \ | |
--header 'X-API-Token: dbba7813bdefb700f087b37aa175921ad7171637' \ | |
-d '{ "destination_name": "Collaborators", "release_notes": "Example new release via the APIs" }' \ | |
"https://api.appcenter.ms/$RELEASE_URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment