Skip to content

Commit a7edc32

Browse files
author
Agus Makmun
committed
feat: added automatic git tag
1 parent 8a3b8a0 commit a7edc32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

push.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ if [ "$commit" ] && [ "$branch" ]; then
5151
git push origin master;
5252

5353
if [ "$upgrade_version" == 'y' ] || [ "$upgrade_version" == 'Y' ]; then
54+
echo "[i] updating new git tag to v$input_new_version"
55+
git tag -a v"$input_new_version" -m "launch v$input_new_version"
56+
git push origin v"$input_new_version"
57+
5458
echo "[i] preparing upload to pypi..."
5559
if ! [ -x "$(command -v twine)" ]; then
5660
pip install twine

0 commit comments

Comments
 (0)