MicroUtils/build_and_publish.sh

16 lines
303 B
Bash
Executable File

#!/bin/bash
function assert_success() {
"${@}"
local status=${?}
if [ ${status} -ne 0 ]; then
echo "### Error ${status} at: ${BASH_LINENO[*]} ###"
exit ${status}
fi
}
export RELEASE_MODE=true
project="$1"
assert_success ./gradlew $project:build $project:bintrayUpload