diff --git a/.travis/deploy.sh b/.travis/deploy.sh new file mode 100644 index 0000000000000000000000000000000000000000..12ac929f2696a63362eea1ffd1cf1983480dc6cd --- /dev/null +++ b/.travis/deploy.sh @@ -0,0 +1,10 @@ +#!/bin/sh +if [ ! -z "$TRAVIS_TAG" ] +then + echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG" + mvn --settings .travis/settings.xml -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null +else + echo "not on a tag -> keep snapshot version in pom.xml" +fi + +mvn clean deploy --settings .travis/settings.xml -DskipTests=true -Dmaven.javadoc.skip=true -B -U