diff --git a/.releaserc.yml b/.releaserc.yml index 48e57aeeb..d6b9cce4b 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -13,7 +13,7 @@ plugins: - [ '@semantic-release/exec', { prepareCmd: '(cd ./apollo/build/packages/ApolloSwift && zip -r "Apollo.xcframework.zip" Apollo.xcframework)' } ] - [ '@semantic-release/exec', { - prepareCmd: "rm -f Package.swift && ./.scripts/updatePackage.swift ${nextRelease.version} \"$(swift package compute-checksum 'apollo/build/packages/ApolloSwift/Apollo.xcframework.zip')\" ./.scripts/TemplatePackage.swift Package.swift" } ] + prepareCmd: "ls && rm -f Package.swift && rm -f Package.swift && ./.scripts/updatePackage.swift ${nextRelease.version} \"$(swift package compute-checksum ./apollo/build/packages/ApolloSwift/Apollo.xcframework.zip)\" ./.scripts/TemplatePackage.swift Package.swift" } ] - [ "@semantic-release/git", { @@ -35,18 +35,3 @@ plugins: ] } ] - - [ - "semantic-release-slack-bot", - { - notifyOnSuccess: true, - notifyOnFail: true, - markdownReleaseNotes: true, - onSuccessTemplate: - { text: "A new version of `$package_name` successfully released!\n - Version: `v$npm_package_version`\n - Tag: $repo_url/releases/tag/v$npm_package_version\n - \n - Release notes:\n - $release_notes" }, - }, - ] diff --git a/.scripts/TemplatePackage.swift b/.scripts/TemplatePackage.swift index 22dd42352..e3b4e244b 100644 --- a/.scripts/TemplatePackage.swift +++ b/.scripts/TemplatePackage.swift @@ -24,7 +24,7 @@ let package = Package( .binaryTarget( name: "ApolloBinary", url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/v/Apollo.xcframework.zip", - checksum: "" + checksum: ) ] ) diff --git a/.scripts/updatePackage.swift b/.scripts/updatePackage.swift index 893d51cfa..cbaa3edf8 100755 --- a/.scripts/updatePackage.swift +++ b/.scripts/updatePackage.swift @@ -16,6 +16,7 @@ func main() { let outputPath = args[4] do { + print("Updating reference to: \(ref) and checksum to:\(checksum)") // Read the content of the file let fileContent = try String(contentsOfFile: inputPath, encoding: .utf8) diff --git a/CHANGELOG.md b/CHANGELOG.md index ceaff5240..66a78228d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## [1.2.5](https://github.com/input-output-hk/atala-prism-apollo/compare/v1.2.4...v1.2.5) (2023-12-11) + + +### Bug Fixes + +* checksum third try ([#125](https://github.com/input-output-hk/atala-prism-apollo/issues/125)) ([f1eba66](https://github.com/input-output-hk/atala-prism-apollo/commit/f1eba66cf93cbbc10dcbbd4f3813858495c2fb93)) + +## [1.2.4](https://github.com/input-output-hk/atala-prism-apollo/compare/v1.2.3...v1.2.4) (2023-12-11) + + +### Bug Fixes + +* checksum correctly updated ([#123](https://github.com/input-output-hk/atala-prism-apollo/issues/123)) ([6dd4d2e](https://github.com/input-output-hk/atala-prism-apollo/commit/6dd4d2edb2ad399641cb983f16ab3e970c9a5312)) +* checkum CI script second try ([#124](https://github.com/input-output-hk/atala-prism-apollo/issues/124)) ([fc6be41](https://github.com/input-output-hk/atala-prism-apollo/commit/fc6be416a254244764a086d33370052d22a14ba8)) + ## [1.2.3](https://github.com/input-output-hk/atala-prism-apollo/compare/v1.2.2...v1.2.3) (2023-12-11) diff --git a/Package.swift b/Package.swift index 726a5e32a..25ee95f8e 100644 --- a/Package.swift +++ b/Package.swift @@ -23,8 +23,8 @@ let package = Package( // RELEASE .binaryTarget( name: "ApolloBinary", - url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/v1.2.3/Apollo.xcframework.zip", - checksum: "" + url: "https://github.com/input-output-hk/atala-prism-apollo/releases/download/v1.2.5/Apollo.xcframework.zip", + checksum: ) ] ) diff --git a/gradle.properties b/gradle.properties index 983b6c852..75d8e373a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version = 1.2.3 +version = 1.2.5 org.gradle.jvmargs = -Xmx3072M -Dkotlin.daemon.jvm.options="-Xmx3072M" kotlin.code.style = official android.useAndroidX = true