Browse Source

Mudanças em release.sh

pull/2902/head
Edward Ribeiro 5 years ago
parent
commit
ef92e24901
  1. 9
      release.sh

9
release.sh

@ -72,19 +72,21 @@ function commit_and_push {
git commit -m "Release: $FINAL_VERSION" git commit -m "Release: $FINAL_VERSION"
git tag $FINAL_VERSION git tag $FINAL_VERSION
echo "sending to github..." echo "Para enviar pro github execute..."
git push origin echo "git push origin 3.1.x"
git push origin $FINAL_VERSION echo "git push origin "$FINAL_VERSION
echo "done." echo "done."
} }
case "$1" in case "$1" in
--latest) --latest)
git fetch
echo $LATEST_VERSION echo $LATEST_VERSION
exit 0 exit 0
;; ;;
--major) --major)
git fetch
set_major_version set_major_version
echo "generating major release: "$FINAL_VERSION echo "generating major release: "$FINAL_VERSION
# git tag $FINAL_VERSION # git tag $FINAL_VERSION
@ -93,6 +95,7 @@ case "$1" in
exit 0 exit 0
;; ;;
--rc) --rc)
git fetch
set_rc_version set_rc_version
echo "generating release candidate: "$FINAL_VERSION echo "generating release candidate: "$FINAL_VERSION
# git tag $FINAL_VERSION # git tag $FINAL_VERSION

Loading…
Cancel
Save