add release script

This commit is contained in:
vanous 2020-11-24 23:20:36 +01:00
parent 2afd5692eb
commit 2e85f607ff
2 changed files with 16 additions and 1 deletions

View File

@ -23,7 +23,7 @@ pip install -r requirements.txt
python main.py
## make Android apk
## Make Android apk
buildozer -v android debug deploy run

15
release.sh Executable file
View File

@ -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