aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-04-29 03:21:58 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-04-29 03:21:58 +0530
commit4c3ccb42cd2c88ae8600f046435c38f5231625bb (patch)
tree4460d4c8db9006dddfb15b380fa7936446787acc /release
parent27cc0728d4104663e8247da63071bab307929d65 (diff)
release/deploy-github: automatically switch refs
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'release')
-rwxr-xr-xrelease/deploy-github.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/deploy-github.sh b/release/deploy-github.sh
index 2849a421..6fb3532d 100755
--- a/release/deploy-github.sh
+++ b/release/deploy-github.sh
@@ -4,5 +4,8 @@ trap 'exit 1' SIGINT SIGTERM
[ -z "$(command -v hub)" ] && { echo "hub not installed; aborting!"; 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
hub release create "${1}" -a app/build/outputs/apk/release/app-release.apk
+git checkout "$prev_ref"