Break build when upload or comp fails.

This commit is contained in:
Martin Rotter 2017-11-13 19:34:44 +01:00
parent bdfe0af3b7
commit 1d96e497b3

View File

@ -25,6 +25,9 @@ git config --global user.name "martinrotter"
git clone https://martinrotter:${GH_TOKEN}@github.com/martinrotter/rssguard.wiki.git ./build-wiki
set -- R*.AppImage
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
imagename="$1"
git_revision=$(git rev-parse --short HEAD)
@ -41,6 +44,9 @@ echo "File to upload: $imagename"
echo "URL ending: $imagenamenospace"
url=$(curl --upload-file "./$imagename" "https://transfer.sh/$imagenamenospace" --silent)
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
echo "| $(date +'%m-%d-%Y %T') | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh]($url) | $(echo "$USE_WEBENGINE") | "$'\r' >> ./build-wiki/Linux-development-builds.md
cd ./build-wiki