diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index 6f53dc59b..df06cd954 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -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 diff --git a/.github/workflows/ios-release-cocoapods.yml b/.github/workflows/ios-release-cocoapods.yml new file mode 100644 index 000000000..1d2f0add2 --- /dev/null +++ b/.github/workflows/ios-release-cocoapods.yml @@ -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