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:
parent
a4fed103af
commit
d92fdf2a92
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user