From 3b991ab464071d65f5ec5a96fb6f9c559f0c4544 Mon Sep 17 00:00:00 2001 From: Alexander Cyon Date: Tue, 20 Feb 2024 09:16:08 +0100 Subject: [PATCH] Make sure Release script in fact commits before tagging, otherwise tagging is meaningless, CD did not work because the released tag did not contain the updated checksum and path in Package.swift (since we did not commit before tagging...). --- scripts/ios/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ios/release.sh b/scripts/ios/release.sh index b94532dac..08822e01b 100755 --- a/scripts/ios/release.sh +++ b/scripts/ios/release.sh @@ -36,9 +36,9 @@ 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 tag $NEXT_TAG` -echo "🚢 🏷️ 📡 Pushing tag: $(last_tag)" +echo "🚢 🏷️ 📡 Pushing tag: $(NEXT_TAG), but only tag, not commit." `git push origin $NEXT_TAG` # This MUST match whatever you we have declared in `$PROJECT_ROOT/Package.swift`