Skip to content

Commit

Permalink
Upload apk to apk.pr0gramm.com too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Apr 16, 2018
1 parent 43a4c06 commit 8a6989d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ function format_version() {

function deploy_upload_apk() {
local APK_ALIGNED=app/build/outputs/apk/release/app-release.apk
local TAG=$(format_version ${VERSION})

echo "Upload apk file now..."
curl -u "$CREDENTIALS_UPDATE" -F apk=@"${APK_ALIGNED}" \
https://app.pr0gramm.com/update-manager/upload

echo "Upload apk file to github"
./upload.sh github_api_token="${CREDENTIALS_GITHUB}" \
owner="mopsalarm" repo="pr0" tag="$(format_version ${VERSION})" \
owner="mopsalarm" repo="pr0" tag="$TAG" \
filename="${APK_ALIGNED}"

ssh apk.pr0gramm.com "wget -O www/pr0gramm-$TAG.apk \
https://github.com/mopsalarm/Pr0/releases/download/$TAG/app-release.apk"
}

# compile code and create apks
Expand Down

0 comments on commit 8a6989d

Please sign in to comment.