Skip to content

Publish Native iOS Libraries #71

Publish Native iOS Libraries

Publish Native iOS Libraries #71

Workflow file for this run

name: Publish Native iOS Libraries
on:
workflow_dispatch:
inputs:
plugins:
description: 'Specify a set of plugins to publish (as a JSON array, ex: [\"camera\", \"browser\"])'
required: true
jobs:
publish-ios:
runs-on: macos-14
if: github.event.inputs.plugins != '[]'
timeout-minutes: 30
strategy:
matrix:
plugin: ${{ fromJson(github.event.inputs.plugins) }}
steps:
- run: sudo xcode-select --switch /Applications/Xcode_15.0.app
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v3
- name: Install Cocoapods
run: |
gem install cocoapods
- name: Deploy to Cocoapods
run: |
set -eo pipefail
npm run publish:cocoapod
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
working-directory: ${{ matrix.plugin }}