using before_deploy

This commit is contained in:
Akinwale Ariwodola 2018-05-09 18:05:35 +01:00
parent 8343cc2c1c
commit c1d487a70a

View file

@ -44,11 +44,13 @@ install:
- echo $'\nd56f5187479451eabf01fb78af6dfcb131a6481e' > ~/.buildozer/android/platform/android-sdk-23/licenses/android-sdk-license
script:
- "source ./release.sh | grep -Fv -e 'working:' -e 'copy' --line-buffered"
- "echo Build Version: $BUILD_VERSION"
before_deploy:
- cd bin
- export BUILD_VERSION=$(cat src/main/python/main.py | grep --color=never -oP '([0-9]+\.?)+')
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: "bin/browser-$BUILD_VERSION-release.apk"
file: browser-$BUILD_VERSION-release.apk
overwrite: true
skip_cleanup: true
on: