aboutsummaryrefslogtreecommitdiff
path: root/release/deploy-github.sh
blob: 42a984c4bde6bed870a43eec923401f515a65dcb (about) (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

trap 'exit 1' SIGINT SIGTERM

[ -z "$(command -v hub)" ] && { echo "hub not installed; aborting!"; exit 1; }
TAG="${1}"
hub tag -afs "${TAG:?}"
gradle clean bundleRelease assembleRelease
hub release create "${TAG}" -a app/build/outputs/apk/release/aps_"${TAG}".apk