From c4051f7421a975a05b107aaaae62cc09edb6eaa5 Mon Sep 17 00:00:00 2001 From: goncalo-frade-iohk <87179681+goncalo-frade-iohk@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:14:17 +0000 Subject: [PATCH] fix: checkum CI script second try (#124) Im merging already since I need to test in the release process. Co-authored-by: Ahmed Moussa Signed-off-by: Goncalo Frade --- .releaserc.yml | 17 +---------------- .scripts/TemplatePackage.swift | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index fb9dc2b95..78401d38c 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 0.0.0 $(swift package compute-checksum 'apollo/build/packages/ApolloSwift/Apollo.xcframework.zip') ./.scripts/TemplatePackage.swift Package.swift" } ] + prepareCmd: "rm -f Package.swift && ./.scripts/updatePackage.swift 0.0.0 \"$(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: ) ] )