Skip to content

Commit 20ed8d3

Browse files
author
Magesh Chandramouli
committed
fixing deploy script
1 parent 72a7509 commit 20ed8d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
cd `dirname $0`/..
33

4-
if [ "${TRAVIS_BRANCH}" == 'master' -a "${TRAVIS_PULL_REQUEST}" == 'false' ]; then
4+
if [ "${TRAVIS_BRANCH}" == 'master' -a "${TRAVIS_PULL_REQUEST}" == 'false' ] || [ -n "${TRAVIS_TAG}" ]; then
55
if [[ -z "${SONATYPE_USERNAME}" || -z "${SONATYPE_PASSWORD}" ]]; then
66
echo "ERROR! Please set SONATYPE_USERNAME and SONATYPE_PASSWORD environment variable"
77
exit 1
@@ -21,6 +21,8 @@ if [ "${TRAVIS_BRANCH}" == 'master' -a "${TRAVIS_PULL_REQUEST}" == 'false' ]; th
2121
fi
2222

2323
exit ${SUCCESS}
24+
else
25+
echo "Skipping artifact deployment for branch ${TRAVIS_BRANCH} with PR=${TRAVIS_PULL_REQUEST} and TAG=${TRAVIS_TAG}"
2426
fi
2527

2628
exit 0

0 commit comments

Comments
 (0)