travis: upload minified release version

This commit is contained in:
Alibek Omarov 2020-01-28 17:32:26 +03:00
parent b7be5a12e1
commit d3cd9d7af3

View File

@ -21,10 +21,11 @@ cache:
script:
- ./gradlew build
after_success:
- $ANDROID_HOME/build-tools/28.0.3/apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey --ks-pass "pass:android" --key-pass "pass:android" --in $(find -name "*-green-debug.apk") --out husky-green-release.apk
- $ANDROID_HOME/build-tools/28.0.3/apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey --ks-pass "pass:android" --key-pass "pass:android" --in $(find -name "*-green-debug.apk") --out husky-green-debug.apk
- $ANDROID_HOME/build-tools/28.0.3/apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey --ks-pass "pass:android" --key-pass "pass:android" --in $(find -name "*-green-release-unsigned.apk") --out husky-green-release.apk
- wget https://raw.githubusercontent.com/FWGS/uploadtool/master/upload.sh
- chmod +x upload.sh
- ./upload.sh husky-green-release.apk
- ./upload.sh husky-green-debug.apk husky-green-release.apk
branches:
except:
# Do not build tags that we create when we upload to GitHub Releases