From 825fffa4d3db68db54c82e0aef450cd0137530be Mon Sep 17 00:00:00 2001 From: wildone Date: Fri, 4 Oct 2019 13:20:19 +1000 Subject: [PATCH] update submodule --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c72421b1f..b12c70290 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,12 +28,12 @@ install: script: - if [[ $TRAVIS_BRANCH == "master" ]]; then mvn clean deploy --settings default.xml -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests=true -B -Prelease; fi -## Get the project version +## Get the project version, only tag if tag does not exist before_deploy: - export CURRENT_VERSION=$(mvn help:evaluate -q -DforceStdout -Dexpression=project.version) - echo CURRENT_VERSION=$CURRENT_VERSION - export TRAVIS_TAG=$CURRENT_VERSION - - if [[ $TRAVIS_BRANCH == "master" ]]; then git tag $TRAVIS_TAG; fi + - if [[ $TRAVIS_BRANCH == "master" ]] && [[ -z $(git tag -l "$CURRENT_VERSION") ]]; then git tag $TRAVIS_TAG; fi ## Create release in GitHub deploy: