Skip to content

Commit

Permalink
prepare for live release
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Berbain committed Oct 24, 2016
1 parent a27951a commit c095c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

if [ "${TRAVIS_PULL_REQUEST}" == false -a -n "${TRAVIS_TAG}" ]; then
# not a pr & this is a tag? -> deploy
set +x
echo ${GPG_SECRET_KEY} | base64 --decode | gpg --import
echo ${GPG_OWNERTRUST} | base64 --decode | gpg --import-ownertrust
set -x
mvn versions:set -DnewVersion=${TRAVIS_TAG}
mvn --settings .travis/settings.xml -P release deploy
else
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit c095c85

Please sign in to comment.