From 2e85f607ff94678fcb5432b5f43cd4f00ba8b998 Mon Sep 17 00:00:00 2001 From: vanous Date: Tue, 24 Nov 2020 23:20:36 +0100 Subject: [PATCH] add release script --- README.md | 2 +- release.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 release.sh diff --git a/README.md b/README.md index be4054e..f95412a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ pip install -r requirements.txt python main.py -## make Android apk +## Make Android apk buildozer -v android debug deploy run diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..8c72528 --- /dev/null +++ b/release.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# save current branch into variable to be able to return to it later +currentBranch=$(git symbolic-ref --short HEAD) +git stash +git checkout master +git pull +git rebase origin/develop + +commitCount=$(git rev-list HEAD --count) + +git tag -a "$commitCount" HEAD -m "Android Release $commitCount" +git push origin master:master --tags +git checkout "$currentBranch" +git stash apply