0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

GitHub alpha publish - non-zero exit on build fail, +x on utility

This commit is contained in:
Mike Hardy 2020-08-19 00:25:46 -05:00
parent a4fed103af
commit d92fdf2a92
No known key found for this signature in database
GPG Key ID: 2FB9315A0E38FF42
2 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ jobs:
curl -L -o ~/bin/github-release.bz2 https://github.com/github-release/github-release/releases/download/v0.8.1/linux-amd64-github-release.bz2
cd ~/bin
bunzip2 github-release.bz2
chmod 755 ~/bin/github-release
sudo chown -R $USER /var/lib/gems/
sudo chown -R $USER /usr/local/bin
gem install asciidoctor

View File

@ -103,7 +103,7 @@ if ! ./gradlew publishReleaseApk
then
# APK contains problems, abort release
git checkout -- $GRADLEFILE # Revert version change
exit
exit 1
fi
# Now build the universal release also
@ -111,7 +111,7 @@ if ! ./gradlew assembleRelease -Duniversal-apk=true
then
# APK contains problems, abort release
git checkout -- $GRADLEFILE # Revert version change
exit
exit 1
fi
# Copy universal APK to cwd