30 lines
706 B
YAML
30 lines
706 B
YAML
name: Publish CocoaPods Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish to CocoaPods trunk
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-apple
|
|
|
|
- name: Publish Yoga
|
|
run: pod trunk push Yoga.podspec
|
|
env:
|
|
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
|
|
|
|
- name: Publish YogaKit
|
|
# Must run with --synchronous since YogaKit may depend on the just published version of Yoga
|
|
run: pod trunk push YogaKit.podspec --synchronous
|
|
env:
|
|
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
|