Create separate workflow for making Cocoapods release (#3458)

This commit is contained in:
Bart Louwers
2025-05-10 10:06:24 +02:00
committed by GitHub
parent c4908e4df2
commit 6e9189d3ba
2 changed files with 25 additions and 2 deletions

View File

@@ -329,8 +329,7 @@ jobs:
- name: Release (CocoaPods) - name: Release (CocoaPods)
shell: bash -leo pipefail {0} # so pod is found shell: bash -leo pipefail {0} # so pod is found
if: env.make_release if: env.make_release
run: | run: gh workflow run ios-release-cocoapods.yml --field version=${{ env.version }}
VERSION=${{ env.version }} COCOAPODS_TRUNK_TOKEN=${{ secrets.COCOAPODS_PASSWORD }} pod trunk push MapLibre.podspec
ios-build-cmake: ios-build-cmake:
needs: pre_job needs: pre_job

View 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