Skip to content

Commit

Permalink
feat: added automatic git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Agus Makmun committed Sep 4, 2022
1 parent 8a3b8a0 commit a7edc32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ if [ "$commit" ] && [ "$branch" ]; then
git push origin master;

if [ "$upgrade_version" == 'y' ] || [ "$upgrade_version" == 'Y' ]; then
echo "[i] updating new git tag to v$input_new_version"
git tag -a v"$input_new_version" -m "launch v$input_new_version"
git push origin v"$input_new_version"

echo "[i] preparing upload to pypi..."
if ! [ -x "$(command -v twine)" ]; then
pip install twine
Expand Down

0 comments on commit a7edc32

Please sign in to comment.