Automated CocoaPods release (#1991)

This commit is contained in:
Bart Louwers
2024-01-04 10:48:30 +01:00
committed by GitHub
parent f1098b2404
commit 39bcb210a0
2 changed files with 18 additions and 8 deletions

View File

@@ -221,14 +221,23 @@ jobs:
git tag -a ios-v${{ env.version }} -m "Publish ios-v${{ env.version }}" ${{ github.sha }}
git push origin ios-v${{ env.version }}
- name: Release
- name: Release (GitHub)
if: env.make_release
id: release
uses: softprops/action-gh-release@v1
with:
name: ios-v${{ env.version }}
files: ${{ env.xcframework }}
files: |
${{ env.xcframework }}
LICENSE.md
tag_name: ios-v${{ env.version }}
prerelease: ${{ !github.event.inputs.release }}
fail_on_unmatched_files: true
- name: Release (CocoaPods)
if: env.make_release
run: |
VERSION=${{ env.version }} COCOAPODS_TRUNK_TOKEN=${{ secrets.COCOAPODS_PASSWORD }} pod trunk push MapLibre.podspec
ios-ci-result:
runs-on: ubuntu-latest