Skip to content

Commit d360580

Browse files
author
Damian Staszewski
committed
deploying release is now only master branch
1 parent bfe02da commit d360580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploying/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
REPO_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
3-
if [[ ! -z $TRAVIS_TAG ]] && [[ $REPO_VERSION != *-SNAPSHOT ]] && [[ "$TRAVIS_BRANCH" != "dev" ]]; then
3+
if [[ ! -z $TRAVIS_TAG ]] && [[ $REPO_VERSION != *-SNAPSHOT ]] && [[ "$TRAVIS_BRANCH" == 'master' ]]; then
44
mvn deploy -P sign,build-extras --settings $TRAVIS_BUILD_DIR/deploying/settings.xml
55
elif [[ $REPO_VERSION == *-SNAPSHOT ]] && [[ "$TRAVIS_BRANCH" == 'dev' ]]; then
66
mvn deploy -P sign,build-extras --settings $TRAVIS_BUILD_DIR/deploying/settings.xml

0 commit comments

Comments
 (0)