mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
17 lines
721 B
Bash
Executable File
17 lines
721 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo Uploading to Appetize and publishing link to Github...
|
|
|
|
FILENAME="$APPCENTER_OUTPUT_DIRECTORY/app-release.apk"
|
|
|
|
if [ -f $FILENAME ]; then
|
|
APTZ=`curl "https://$APPETIZE@api.appetize.io/v1/apps" -F "file=@$FILENAME" -F "platform=android"`
|
|
echo Apptezize response:
|
|
echo $APTZ
|
|
APPURL=`node -e "let e = JSON.parse('$APTZ'); console.log(e.publicURL);"`
|
|
echo App url: $APPURL
|
|
PR=`node appcenter-post-build-get-pr-number.js`
|
|
echo PR: $PR
|
|
curl -X POST --data "{\"body\":\"Test this build in browser:\n\n(ノ◕ヮ◕)ノ*:・゚✧ $APPURL\n\n(posted automatically)\"}" -u "Overtorment:$GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments"
|
|
fi
|