Skip to content

Commit 226d163

Browse files
committed
Release only for tagged builds
1 parent f3b1e8c commit 226d163

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ install:
88
- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
99

1010
script:
11-
mvn clean deploy --settings .maven.xml -B -U -Prelease
11+
- |
12+
if [[ -z "${TRAVIS_TAG}" ]]; then
13+
mvn clean deploy --settings .maven.xml -B -U
14+
else
15+
mvn clean deploy --settings .maven.xml -B -U -Prelease
16+
fi
1217
1318
before_deploy:
1419
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['

0 commit comments

Comments
 (0)