From ef92e249013cd214bcbc69caf3844db389ab72e9 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 31 Jul 2019 15:09:14 -0300 Subject: [PATCH] =?UTF-8?q?Mudan=C3=A7as=20em=20release.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/release.sh b/release.sh index 344e33790..5bfd27fef 100755 --- a/release.sh +++ b/release.sh @@ -72,19 +72,21 @@ function commit_and_push { git commit -m "Release: $FINAL_VERSION" git tag $FINAL_VERSION - echo "sending to github..." - git push origin - git push origin $FINAL_VERSION + echo "Para enviar pro github execute..." + echo "git push origin 3.1.x" + echo "git push origin "$FINAL_VERSION echo "done." } case "$1" in --latest) + git fetch echo $LATEST_VERSION exit 0 ;; --major) + git fetch set_major_version echo "generating major release: "$FINAL_VERSION # git tag $FINAL_VERSION @@ -93,6 +95,7 @@ case "$1" in exit 0 ;; --rc) + git fetch set_rc_version echo "generating release candidate: "$FINAL_VERSION # git tag $FINAL_VERSION