Skip to content

Commit

Permalink
Resolve git branch if not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jul 10, 2017
1 parent 726bc19 commit 8c31b93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/scripts/tag-release.sh
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
GIT_BRANCH=${GIT_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
[[ $GIT_BRANCH =~ ^release ]] && ./gradlew -Pbintray_user=$BINTRAY_USER -Pbintray_key=$BINTRAY_KEY release bintrayUpload

0 comments on commit 8c31b93

Please sign in to comment.