diff --git a/Package.swift b/Package.swift index 460bfd1f3..b4e545377 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ if useLocalFramework { ) } else { let releaseTag = "0.1.0" - let releaseChecksum = "029cf3fd7e0a13b5ad8c1a61ff21528fcdeb661c3228b3d9a6b51db6f1dc98fb" + let releaseChecksum = "0e7ec3c9cf1ccfcef154476f12772dc1d231494c14c14b5c5970e7958c98e347" binaryTarget = .binaryTarget( name: sargonBinaryTargetName, url: diff --git a/scripts/ios/release.sh b/scripts/ios/release.sh index 044b290ee..4ad1b14db 100755 --- a/scripts/ios/release.sh +++ b/scripts/ios/release.sh @@ -20,8 +20,11 @@ echo "🔮 Last tag: $(last_tag)" 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}') `git tag $NEXT_TAG` -echo "🔮 Last tag: $(last_tag)" -RELEASE_CMD="gh release create $NEXT_TAG $ZIP_PATH" +echo "🔮 Pushing tag: $(last_tag)" +`git push origin $NEXT_TAG` +SWIFT_SARGON_BINARY_ASSET_NAME="SPM binaryTarget xcframework zip for Sargon v$NEXT_TAG" +GH_RELEASE_TITLE="Sargon Swift Only v$NEXT_TAG" +RELEASE_CMD="gh release create $NEXT_TAG '$ZIP_PATH#$SWIFT_SARGON_BINARY_ASSET_NAME' --generate-notes --title '$GH_RELEASE_TITLE'" echo "📦 will now run command: '$RELEASE_CMD'" eval $RELEASE_CMD