From f95b4ea975525ea554adb6f1e4595e3ba6bf3bde Mon Sep 17 00:00:00 2001 From: Sean Mac Gillicuddy Date: Thu, 30 May 2019 12:23:23 +0100 Subject: [PATCH] #1175 move play publishing to deploy phase --- .travis.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e56edeba..553d6ce3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,9 +58,6 @@ script: after_success: - bash <(curl -s https://codecov.io/bash) - ./gradlew testdroidUploadKiwixDebug - - if [ $TRAVIS_TAG ] && [$TRAVIS_PULL_REQUEST == “false” ] && [ $TRAVIS_BRANCH == “release” ] || [ $TRAVIS_BRANCH == “master” ]; then - ./gradlew publishKiwixRelease; - fi after_failure: - export LOG_DIR = ${TRAVIS_HOME}/build/kiwix/kiwix-android/app/build/outputs/reports/androidTests/connected/flavors/KIWIX/ @@ -73,6 +70,8 @@ before_deploy: - export APP_CHANGELOG=$(cat app/src/kiwix/play/release-notes/en-US/default.txt) deploy: + +#publish on github releases - provider: releases api_key: "$GITHUB_TOKEN" file: app/build/outputs/apk/kiwix/release/* @@ -83,4 +82,12 @@ deploy: draft: true on: tags: true - branch: release \ No newline at end of file + condition: $TRAVIS_BRANCH =~ ^release|master + +#publish on play store + - provider: script + skip_cleanup: true + script: ./gradlew publishKiwixRelease + on: + tags: true + condition: $TRAVIS_BRANCH =~ ^release|master \ No newline at end of file