Skip to content

Commit

Permalink
other fixes to publish gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Oct 16, 2024
1 parent 5d20407 commit 37412fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-swift-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
run: ls
- name: Update Swift Package definition
run: |
sed -i '' 's#.binaryTarget(name: "lwkFFI".*$#.binaryTarget(name: "lwkFFI", url: "https://github.com/Blockstream/lwk-swift/releases/download/${VERSION}/lwkFFI.xcframework.zip", checksum: "${{ env.XCF_CHECKSUM }}"),#' Package.swift
sed -i '' "s#.binaryTarget(name: \"lwkFFI\".*$#.binaryTarget(name: \"lwkFFI\", url: \"https://github.com/Blockstream/lwk-swift/releases/download/${VERSION}/lwkFFI.xcframework.zip\", checksum: \"${XCF_CHECKSUM}\"),#" Package.swift
- name: Update Cocoapods definitions
run: |
sed -i '' 's/^.\{4\}spec.version.*$/ spec.version = "${VERSION}"/g' lwkFFI.podspec
sed -i '' 's/^.\{4\}spec.source.*$/ spec.source = { :http => "https://github.com/Blockstream/lwk-swift/releases/download/${VERSION}/lwkFFI.xcframework.zip" }/g' lwkFFI.podspec
sed -i '' 's/^.\{4\}spec.version.*$/ spec.version = "${VERSION}"/g' LiquidWalletKit.podspec
sed -i '' "s/^.\{4\}spec.version.*$/ spec.version = \"${VERSION}\"/g" lwkFFI.podspec
sed -i '' "s/^.\{4\}spec.source.*$/ spec.source = { :http => \"https://github.com/Blockstream/lwk-swift/releases/download/${VERSION}/lwkFFI.xcframework.zip\" }/g" lwkFFI.podspec
sed -i '' "s/^.\{4\}spec.version.*$/ spec.version = \"${VERSION}\"/g" LiquidWalletKit.podspec
- name: Tag the Swift bindings
run: |
git add Package.swift
Expand Down
2 changes: 1 addition & 1 deletion lwkFFI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "lwkFFI"
spec.version = "bindings_0.8.2"
spec.version = "0.8.2"
spec.license = { :type => "MIT OR BSD-2-Clause" }
spec.summary = "Low-level bindings to the Liquid Wallet Kit Rust API"
spec.homepage = "https://blockstream.com"
Expand Down

0 comments on commit 37412fe

Please sign in to comment.