Skip to content

Commit

Permalink
fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
franzbecker committed Sep 4, 2015
1 parent 86ea77c commit 2a9d107
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis-publishOnRelease.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/bash
# Execute only if branch is 'master' and a tag exists that starts with 'v'
echo "TRAVIS_BRANCH = $TRAVIS_BRANCH"
echo "TRAVIS_TAG = $TRAVIS_TAG"
# Execute only on tag builds where the tag starts with 'v'

if [[ $TRAVIS_BRANCH == "master" && -n "$TRAVIS_TAG" && "$TRAVIS_TAG" == v* ]]; then
if [[ -n "$TRAVIS_TAG" && "$TRAVIS_TAG" == v* ]]; then
echo "Publishing version: $TRAVIS_TAG"
echo "gradle.publish.key=$GRADLE_PUBLISH_KEY" >> gradle.properties
echo "gradle.publish.secret=$GRADLE_PUBLISH_SECRET" >> gradle.properties
Expand Down

0 comments on commit 2a9d107

Please sign in to comment.