diff --git a/.github/workflows/release/kotlin-maven-build.sh b/.github/workflows/release/kotlin-maven-build.sh index f800675c..4e2cea74 100755 --- a/.github/workflows/release/kotlin-maven-build.sh +++ b/.github/workflows/release/kotlin-maven-build.sh @@ -1,14 +1,11 @@ set -e -export ZERO_AR_DATE=1 echo "Build Kotlin and Swift Chat SDK module artifacts" ./gradlew -PENABLE_TARGET_IOS_ALL=true :podPublishReleaseXCFramework assemble -TZ=UTC find build/cocoapods/publish/release/PubNubChat.xcframework -exec touch -t 197001010000.00 {} + rm -f build/cocoapods/publish/release/PubNubChat.xcframework.zip pushd build/cocoapods/publish/release zip -X -vr PubNubChat.xcframework.zip PubNubChat.xcframework -TZ=UTC touch -t 197001010000.00 PubNubChat.xcframework.zip popd CHECKSUM=$(swift package compute-checksum build/cocoapods/publish/release/PubNubChat.xcframework.zip) -echo $CHECKSUM mkdir build/gh_artifacts -mv build/cocoapods/publish/release/PubNubChat.xcframework.zip build/gh_artifacts/ \ No newline at end of file +mv build/cocoapods/publish/release/PubNubChat.xcframework.zip build/gh_artifacts/ +echo "$CHECKSUM" > build/gh_artifacts/PubNubChat.xcframework.checksum.txt \ No newline at end of file diff --git a/.github/workflows/release/kotlin-pre-publish.sh b/.github/workflows/release/kotlin-pre-publish.sh deleted file mode 100755 index a20b7d67..00000000 --- a/.github/workflows/release/kotlin-pre-publish.sh +++ /dev/null @@ -1,14 +0,0 @@ -set -e -export ZERO_AR_DATE=1 -echo "Update Swift Chat SDK checksum in Package.swift" -./gradlew -PENABLE_TARGET_IOS_ALL=true :podPublishReleaseXCFramework -TZ=UTC find build/cocoapods/publish/release/PubNubChat.xcframework -exec touch -t 197001010000.00 {} + -rm -f build/cocoapods/publish/release/PubNubChat.xcframework.zip -pushd build/cocoapods/publish/release -zip -X -vr PubNubChat.xcframework.zip PubNubChat.xcframework -TZ=UTC touch -t 197001010000.00 PubNubChat.xcframework.zip -popd -CHECKSUM=$(swift package compute-checksum build/cocoapods/publish/release/PubNubChat.xcframework.zip) -echo $CHECKSUM -sed -i.bak "s/checksum: \"[a-z0-9]*\"/checksum: \"$CHECKSUM\"/g" Package.swift -rm Package.swift.bak \ No newline at end of file