Skip to content

Commit

Permalink
Fix sed command for podspec and add to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel committed Feb 29, 2024
1 parent 73f2277 commit aea7a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
sed -i '' 's/.binaryTarget.*/.binaryTarget(name: "RustFramework", url: "https:\/\/github.com\/spruceid\/wallet-sdk-rs\/releases\/download\/${{ github.event.inputs.version }}\/RustFramework.xcframework.zip", checksum: "${{ env.XCF_CHECKSUM }}"),/' Package.swift
- name: Update Cocoapods definitions
run: |
sed -i '' 's/[0-9]\+\.[0-9]\+\.[0-9]\+/${{ github.events.inputs.version }}/' SpruceIDWalletSdkRs.podspec
sed -i '' 's/[0-9]\+\.[0-9]\+\.[0-9]\+/${{ github.events.inputs.version }}/' SpruceIDWalletSdkRsRustFramework.podspec
sed -i '' -r 's/[0-9]+.[0-9]+.[0-9]+/${{ github.events.inputs.version }}/' SpruceIDWalletSdkRsRustFramework.podspec
sed -i '' -r 's/[0-9]+.[0-9]+.[0-9]+/${{ github.events.inputs.version }}/' SpruceIDWalletSdkRs.podspec
- name: Push changes and tag
run: |
git config user.name github-actions
git config user.email [email protected]
git add Package.swift
git add Package.swift SpruceIDWalletSdkRs.podspec SpruceIDWalletSdkRsRustFramework.podspec
git commit -m "Release ${{ github.event.inputs.version }}"
git push
git tag ${{ github.event.inputs.version }} -m "${{ github.event.inputs.version }}"
Expand Down

0 comments on commit aea7a62

Please sign in to comment.