Skip to content

Commit

Permalink
move echo of version and fix sed
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Oct 16, 2024
1 parent c95d2e1 commit 4f74055
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish-swift-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ jobs:
run: |
echo "RELEASE_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "VERSION=$(echo ${{ env.RELEASE_REF }} | sed 's/bindings_//')" >> $GITHUB_ENV
echo "New tag: ${{ env.VERSION }}"
- name: Version
run: echo "New tag: ${{ env.VERSION }}"
- name: Update Swift Package definition
run: |
sed -i '' 's#.binaryTarget(name: "lwkFFI".*$#.binaryTarget(name: "lwkFFI", url: "https://github.com/Blockstream/lwk-swift/releases/download/${{ env.VERSION }}/lwkFFI.xcframework.zip", checksum: "${{ env.XCF_CHECKSUM }}"),#' Package.swift
- name: Update Cocoapods definitions
run: |
sed -i '' 's/^.\{4\}spec.version.*$/ spec.version = "${{ env.VERSION }}"/g' lwkFFI.podspec
sed -i '' 's/^.\{4\}spec.source.*$/ spec.source = { :http => "https://github.com/Blockstream/lwk-swift/releases/download/${{ env.VERSION }}/lwkFFI.xcframework.zip" }/g' lwkFFI.podspec
sed -i '' 's/^.\{4\}spec.version.*$/ spec.version = "${{ env.VERSION }}"/g' LiquidWalletKit.podspec
sed -i 's/^.\{4\}spec.version.*$/ spec.version = "${{ env.VERSION }}"/g' lwkFFI.podspec
sed -i 's/^.\{4\}spec.source.*$/ spec.source = { :http => "https://github.com/Blockstream/lwk-swift/releases/download/${{ env.VERSION }}/lwkFFI.xcframework.zip" }/g' lwkFFI.podspec
sed -i 's/^.\{4\}spec.version.*$/ spec.version = "${{ env.VERSION }}"/g' LiquidWalletKit.podspec
- name: Tag the Swift bindings
run: |
git add Package.swift
Expand Down

0 comments on commit 4f74055

Please sign in to comment.