travis: deploy only on success, don't install shared keystore

This commit is contained in:
Alibek Omarov 2019-12-09 04:40:19 +03:00
parent d9d88b528e
commit b4585b63bb

View File

@ -4,10 +4,7 @@ android:
components:
- android-29
- build-tools-28.0.3
before_script:
- mkdir -p $ANDROID_HOME/.android/
- cp debug.keystore $ANDROID_HOME/.android/
after_script:
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 "*-blue-release-unsigned.apk") --out husky-release.apk
- wget https://raw.githubusercontent.com/FWGS/uploadtool/master/upload.sh
- chmod +x upload.sh