From e5c4778ff7c2ffc6d6dd6f1cf955e689a7ea5a33 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 31 Aug 2018 17:04:15 +0200 Subject: [PATCH] Updated publish script --- scripts/publish.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 466a5c29..56695f93 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -eux +set -eu cd "$(dirname "$0")/.." @@ -36,9 +36,14 @@ commit_new_version () { add_tag () { 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 commit_new_version add_tag +push