diff --git a/automate.sh b/automate.sh index c833761..c1b3ac2 100644 --- a/automate.sh +++ b/automate.sh @@ -27,9 +27,12 @@ if [ $branch == 1 ] ; then echo "Commit en cours..." sleep 1 git commit + echo "Entrez la version du tag:" + read tag + git tag $tag echo "Push des fichiers au Gitea, branche main..." sleep 1 - git push -q origin main + git push -q origin main --tag fi elif [ $branch == 2 ] ; then @@ -45,9 +48,12 @@ elif [ $branch == 2 ] ; then echo "Commit en cours..." sleep 1 git commit + echo "Entrez la version du tag:" + read tag + git tag $tag echo "Push des fichiers au Gitea, branche test..." sleep 1 - git push -q origin test + git push -q origin test --tag fi else