1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00

deploy.sh: Moved the gradle build task to earlier in the process to better be able to catch errors.

This commit is contained in:
Fabian Schlenz 2018-03-08 23:11:14 +01:00
parent a8944125b6
commit b0fa297a61

View File

@ -40,6 +40,9 @@ git commit -m "Bumping the version to $VERSION" Dockerfile
echo "Tagging the new version..." echo "Tagging the new version..."
git tag -a "$VERSION" -m "Version $VERSION" || error git tag -a "$VERSION" -m "Version $VERSION" || error
echo "Building it..."
gradle build || error "Build failed. What did you do?!"
echo "Checking out stable..." echo "Checking out stable..."
git checkout stable || error git checkout stable || error
@ -52,9 +55,6 @@ git push --all || error
echo "Pushing tags to Github..." echo "Pushing tags to Github..."
git push --tags || error git push --tags || error
echo "Building it..."
gradle build || error "Build failed. What did you do?!"
echo "Generating a release on Github..." 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" 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"