Skip to content

Commit dbcf59b

Browse files
committed
Fix release process to publish only git tags
Now, a release snapshot will be uploaded to JFrog Bintray only when a new git tag will be published to the GitHub repository.
1 parent 9699702 commit dbcf59b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/release.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
RELEASECMD='./gradlew leveldb:bintrayUpload'
44

5-
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]
5+
if [[ ! -z "$TRAVIS_TAG" ]]
66
then
7-
echo "Performing release since on master and not a pull request."
7+
echo "Performing release since this build is for a git tag ($TRAVIS_TAG)."
88
echo
99

1010
echo "$RELEASECMD"
1111
eval "$RELEASECMD"
1212
else
13-
echo "Not performing release since on branch '$TRAVIS_BRANCH' or a pull request ($TRAVIS_PULL_REQUEST)."
13+
echo "Not performing release since this build is not for a git tag."
1414
fi

0 commit comments

Comments
 (0)