Check if tag == branch for deploying in travis
set -e
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] &&
- [[ "$TRAVIS_BRANCH" == "master" ]] &&
- [[ ! -z "$TRAVIS_TAG" ]];
+ [[ ! -z "$TRAVIS_TAG" ]] &&
+ [[ "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]];
then
echo ""
echo "Building packages for version ${TRAVIS_TAG}"
