From b0fa297a6158c4338ead5c0d7ebeca3265edc455 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 8 Mar 2018 23:11:14 +0100 Subject: [PATCH] deploy.sh: Moved the gradle build task to earlier in the process to better be able to catch errors. --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index be3715d..ea3e0a9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -40,6 +40,9 @@ git commit -m "Bumping the version to $VERSION" Dockerfile echo "Tagging the new version..." git tag -a "$VERSION" -m "Version $VERSION" || error +echo "Building it..." +gradle build || error "Build failed. What did you do?!" + echo "Checking out stable..." git checkout stable || error @@ -52,9 +55,6 @@ git push --all || error echo "Pushing tags to Github..." git push --tags || error -echo "Building it..." -gradle build || error "Build failed. What did you do?!" - echo "Generating a release on Github..." json=$(ruby -e "require 'json'; puts({tag_name: '$VERSION', name: '$VERSION', body: \$stdin.read}.to_json)" <<< "$release_notes") || error "Couldn't generate JSON for Github"