1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-02-11 19:34:11 +01:00

Create explicit tag before deploying to github

Also remove script and "rename" APK in before_deploy instead.
This commit is contained in:
Erik Johansson 2018-01-01 19:14:50 +01:00
parent 12563fa794
commit 1ccb717041
2 changed files with 11 additions and 9 deletions

View File

@ -9,18 +9,24 @@ android:
- android-26
- extra-android-m2repository
before_deploy:
- ln -s app/build/outputs/apk/debug/app-debug.apk openScale-dev-build.apk
- git tag -f travis-dev-build
- git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git
- git push -f gh travis-dev-build
- git remote remove gh
deploy:
provider: releases
api-key: $GITHUB_API_KEY
file: $HOME/openScale-dev-build.apk
file: openScale-dev-build.apk
skip_cleanup: true
name: "openScale dev build"
body: "Automatically openScale dev build by Travis CI"
prerelease: true
overwrite: true
after_success:
- chmod +x ./upload_apk.sh
- ./upload_apk.sh
target_commitish: $TRAVIS_COMMIT
on:
branch: travis
script: cd android_app && ./gradlew testDebug assembleDebug

View File

@ -1,4 +0,0 @@
#!/bin/sh
# copy apk file to home
cp app/build/outputs/apk/debug/app-debug.apk $HOME/openScale-dev-build.apk