forked from freelancer/capacitor-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 932 Bytes
/
publish-ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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@v3
with:
node-version: 16
- 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 }}