diff --git a/scripts/ios/release.sh b/scripts/ios/release.sh index 08822e01b..59946ceec 100755 --- a/scripts/ios/release.sh +++ b/scripts/ios/release.sh @@ -20,7 +20,7 @@ function last_tag() { local out=`git tag --sort=taggerdate | tail -1` echo $out } -echo "🚢 🏷️ Last tag: $(last_tag)" +echo "🚢 🏷️ Last tag: $(last_tag)" # one liner from: https://stackoverflow.com/a/8653732 NEXT_TAG=$(echo $(last_tag) | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}') @@ -36,7 +36,8 @@ XCFRAME_ZIP_PATH=`echo "$OUTPUT_OF_BUILD" | cut -d ";" -f 2` || exit $? echo "🚢 CHECKSUM: $CHECKSUM" echo "🚢 XCFRAME_ZIP_PATH: $XCFRAME_ZIP_PATH" -`git commit -m "Release of '$NEXT_TAG' (updated Package.swift with new checksum and path to zip on Github). This commit is not merged into main/develop branch (and need not be)."` +GIT_COMMIT_CMD="git commit -m \"Release of '$NEXT_TAG' (updated Package.swift with new checksum and path to zip on Github). This commit is not merged into main/develop branch (and need not be).\" --no-verify" +eval $GIT_COMMIT_CMD `git tag $NEXT_TAG` echo "🚢 🏷️ 📡 Pushing tag: $(NEXT_TAG), but only tag, not commit." `git push origin $NEXT_TAG`