Ver código fonte

Updated publish script

Benoit Blanchon 7 anos atrás
pai
commit
e5c4778ff7
1 arquivos alterados com 7 adições e 2 exclusões
  1. 7 2
      scripts/publish.sh

+ 7 - 2
scripts/publish.sh

@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #!/usr/bin/env bash
 
 
-set -eux
+set -eu
 
 
 cd "$(dirname "$0")/.."
 cd "$(dirname "$0")/.."
 
 
@@ -36,9 +36,14 @@ commit_new_version () {
 
 
 add_tag () {
 add_tag () {
 	CHANGES=$(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' CHANGELOG.md)
 	CHANGES=$(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' CHANGELOG.md)
-	git tag -m "ArduinoJson $VERSION\n$CHANGES" $TAG
+	git tag -m "ArduinoJson $VERSION"$'\n'"$CHANGES" "$TAG"
+}
+
+push () {
+	git push --follow-tags
 }
 }
 
 
 update_version_in_source
 update_version_in_source
 commit_new_version
 commit_new_version
 add_tag
 add_tag
+push