#!/usr/bin/env bash

set -e

rm -rf build

./gradlew -q clean check install --stacktrace

# if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then

#     if [[ -n $TRAVIS_TAG ]]; then

        ./gradlew bintrayUpload --stacktrace

        ./publish-docs.sh

#     fi

# fi
#!/usr/bin/env bash

set -e

rm -rf build

./gradlew -q clean check install --stacktrace

if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then

    if [[ -n $TRAVIS_TAG ]]; then

        ./gradlew bintrayUpload --stacktrace

        ./publish-docs.sh

    fi

fi
Deploy only if there is a tag
Deploy only if there is a tag
