|
@@ -14,7 +14,7 @@ BUILD=$3
|
|
PR=$4
|
|
PR=$4
|
|
GITHUB_TOKEN=$5
|
|
GITHUB_TOKEN=$5
|
|
|
|
|
|
-if ! test -e build/outputs/apk/qa/debug/qa-debug-*.apk ; then
|
|
|
|
|
|
+if ! test -e app/build/outputs/apk/qa/debug/qa-debug-*.apk ; then
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|
|
echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
|
|
echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
|
|
@@ -30,6 +30,6 @@ apt-get -y install qrencode
|
|
|
|
|
|
qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk"
|
|
qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk"
|
|
|
|
|
|
-curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file build/outputs/apk/qa/debug/qa-debug-*.apk
|
|
|
|
|
|
+curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file app/build/outputs/apk/qa/debug/qa-debug-*.apk
|
|
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png
|
|
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png
|
|
curl --header "authorization: Bearer $GITHUB_TOKEN" -X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/>  <br/><br/>To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. \" }"
|
|
curl --header "authorization: Bearer $GITHUB_TOKEN" -X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/>  <br/><br/>To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. \" }"
|