Skip to content

Add license file to zip. Checkout correct tag before publish. Fix changing SHA in podfile #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Zip XCFramework
run: |
mv "build/XCFrameworks/release/${{ env.xcframework_name }}" .
zip -r "${{ env.xcframework_zip_name }}" "${{ env.xcframework_name }}"
zip -r "${{ env.xcframework_zip_name }}" "${{ env.xcframework_name }}" LICENSE

- name: Calculate checksum
id: calculate_checksum
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Change SHA256 in podspec file
run: |
XCFRAMEWORK_SHA256="${{ needs.build_xcframework.outputs.sha256 }}"
sed -i -e "s/:sha256 => \"\"$/:sha256 => \"$XCFRAMEWORK_SHA256\"/g" "${{ env.podspec_name }}"
sed -i -e "s/:sha256.*=>.*$/:sha256 => \"$XCFRAMEWORK_SHA256\"/g" "${{ env.podspec_name }}"

- name: Setup git config
run: |
Expand Down Expand Up @@ -160,6 +160,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: "${{ needs.create_release_branch.outputs.tag }}"
fetch-depth: 0

- name: Set up JDK 11
Expand Down Expand Up @@ -192,6 +193,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
ref: "${{ needs.create_release_branch.outputs.tag }}"

- name: Publish to cocoadpods
env:
Expand Down