#1214 upload universal apk to download.kiwix on nightly build and to Github Releases on a tagged release

This commit is contained in:
Sean Mac Gillicuddy 2019-06-26 15:09:14 +01:00
parent 63599fa685
commit 65a28a2f66

View File

@ -60,7 +60,7 @@ script:
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./gradlew kiwixtestUploadKiwix
- ./gradlew kiwixtestUploadKiwix assembleKiwixRelease
after_failure:
- export LOG_DIR = ${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/
@ -71,14 +71,15 @@ after_failure:
before_deploy:
# - export APP_CHANGELOG=$(cat app/src/kiwix/play/release-notes/en-US/default.txt)
- ./gradlew assembleKiwixRelease
- export DATE = `date +%Y-%m-%d`
- export UNIVERSAL_APK = app/build/outputs/apk/kiwix/release/*universal*.apk
deploy:
#publish on github releases
- provider: releases
api_key: "$GITHUB_TOKEN"
file: app/build/outputs/apk/kiwix/release/*
file: $UNIVERSAL_APK
file_glob: true
skip_cleanup: true
overwrite: true
@ -93,3 +94,10 @@ deploy:
script: ./gradlew publishKiwixRelease
on:
tags: true
#publish on download.kiwix.org
- provider: script
skip_cleanup: true
script: scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no $UNIVERSAL_APK ci@download.kiwix.org:/data/download/nightly/$DATE
on:
branch: develop