Skip to content

Commit

Permalink
fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mapnerd committed May 2, 2017
1 parent 5df5d1f commit e4085cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# runs the gradle release plugin
#

if ([ -n ${RELEASE_VERSION_NUMBER} ] && [ -n ${NEW_VERSION_NUMBER} ]); then
if ([ -z $RELEASE_VERSION_NUMBER ] || [ -z $NEW_VERSION_NUMBER ]); then
echo "RELEASE_VERSION_NUMBER or NEW_VERSION_NUMBER not specified, skipping release."
else
echo "Releasing"
git config --global user.email "[email protected]"
git config --global user.name "Mapzen Developer"
./gradlew release -Prelease.useAutomaticVersion=true \
-Prelease.releaseVersion=$RELEASE_VERSION_NUMBER \
-Prelease.newVersion=$NEW_VERSION_NUMBER
else
echo "RELEASE_VERSION_NUMBER & NEW_VERSION_NUMBER not specified, skipping release."
fi

0 comments on commit e4085cb

Please sign in to comment.