mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
release/deploy-github: automatically switch refs
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -4,5 +4,8 @@ trap 'exit 1' SIGINT SIGTERM
|
|||||||
|
|
||||||
[ -z "$(command -v hub)" ] && { echo "hub not installed; aborting!"; exit 1; }
|
[ -z "$(command -v hub)" ] && { echo "hub not installed; aborting!"; exit 1; }
|
||||||
[ -z "${1}" ] && { echo "No tag specified!"; exit 1; }
|
[ -z "${1}" ] && { echo "No tag specified!"; exit 1; }
|
||||||
|
prev_ref="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
|
git checkout "${1}"
|
||||||
gradle clean bundleRelease assembleRelease
|
gradle clean bundleRelease assembleRelease
|
||||||
hub release create "${1}" -a app/build/outputs/apk/release/app-release.apk
|
hub release create "${1}" -a app/build/outputs/apk/release/app-release.apk
|
||||||
|
git checkout "$prev_ref"
|
||||||
|
Reference in New Issue
Block a user