2019-12-15 21:49:18 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-07-03 05:03:17 +00:00
|
|
|
set -ex
|
2019-12-15 21:49:18 +00:00
|
|
|
|
|
|
|
trap 'exit 1' SIGINT SIGTERM
|
|
|
|
|
|
|
|
[ -z "$(command -v hub)" ] && { echo "hub not installed; aborting!"; exit 1; }
|
2020-04-21 08:30:33 +00:00
|
|
|
[ -z "${1}" ] && { echo "No tag specified!"; exit 1; }
|
2020-04-28 21:51:58 +00:00
|
|
|
prev_ref="$(git rev-parse --abbrev-ref HEAD)"
|
2020-05-24 10:56:45 +00:00
|
|
|
git checkout "${1}" || exit 1
|
2019-12-15 21:49:18 +00:00
|
|
|
gradle clean bundleRelease assembleRelease
|
2020-04-23 07:39:03 +00:00
|
|
|
hub release create "${1}" -a app/build/outputs/apk/release/app-release.apk
|
2020-04-28 21:51:58 +00:00
|
|
|
git checkout "$prev_ref"
|