mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -04:00
#1214 upload universal apk to download.kiwix on nightly build and to Github Releases on a tagged release
This commit is contained in:
parent
63599fa685
commit
65a28a2f66
14
.travis.yml
14
.travis.yml
@ -60,7 +60,7 @@ script:
|
|||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
- ./gradlew kiwixtestUploadKiwix
|
- ./gradlew kiwixtestUploadKiwix assembleKiwixRelease
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- export LOG_DIR = ${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/
|
- 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:
|
before_deploy:
|
||||||
# - export APP_CHANGELOG=$(cat app/src/kiwix/play/release-notes/en-US/default.txt)
|
# - 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:
|
deploy:
|
||||||
|
|
||||||
#publish on github releases
|
#publish on github releases
|
||||||
- provider: releases
|
- provider: releases
|
||||||
api_key: "$GITHUB_TOKEN"
|
api_key: "$GITHUB_TOKEN"
|
||||||
file: app/build/outputs/apk/kiwix/release/*
|
file: $UNIVERSAL_APK
|
||||||
file_glob: true
|
file_glob: true
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
overwrite: true
|
overwrite: true
|
||||||
@ -93,3 +94,10 @@ deploy:
|
|||||||
script: ./gradlew publishKiwixRelease
|
script: ./gradlew publishKiwixRelease
|
||||||
on:
|
on:
|
||||||
tags: true
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user