Create separate workflow for making Cocoapods release (#3458)
This commit is contained in:
3
.github/workflows/ios-ci.yml
vendored
3
.github/workflows/ios-ci.yml
vendored
@@ -329,8 +329,7 @@ jobs:
|
||||
- name: Release (CocoaPods)
|
||||
shell: bash -leo pipefail {0} # so pod is found
|
||||
if: env.make_release
|
||||
run: |
|
||||
VERSION=${{ env.version }} COCOAPODS_TRUNK_TOKEN=${{ secrets.COCOAPODS_PASSWORD }} pod trunk push MapLibre.podspec
|
||||
run: gh workflow run ios-release-cocoapods.yml --field version=${{ env.version }}
|
||||
|
||||
ios-build-cmake:
|
||||
needs: pre_job
|
||||
|
||||
24
.github/workflows/ios-release-cocoapods.yml
vendored
Normal file
24
.github/workflows/ios-release-cocoapods.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: ios-release-cocoapods
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
ios-release-cocoapods:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: platform/ios
|
||||
runs-on: macos-14
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Release (CocoaPods)
|
||||
shell: bash -leo pipefail {0} # so pod is found
|
||||
run: |
|
||||
VERSION=${{ github.event.inputs.version }} COCOAPODS_TRUNK_TOKEN=${{ secrets.COCOAPODS_PASSWORD }} pod trunk push MapLibre.podspec
|
||||
Reference in New Issue
Block a user