Skip to content

Commit

Permalink
Automate publishing podspecs to CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
rebello95 committed Oct 15, 2024
1 parent fc543d4 commit 2e49997
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cocoapods.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: cocoapods
on:
push:
branches:
- main
pull_request: # TODO: remove before merging
workflow_dispatch: {} # support manual runs
permissions:
contents: read
jobs:
publish-podspecs:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Publish podspecs to CocoaPods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
# Note that CocoaPods may fail to publish the Mocks spec for some time
# after publishing the primary spec because the former depends on the latter.
# If this happens, re-run the job after ~20 minutes or wait for the next commit
# to land on main.
run: |
pod trunk push Connect-Swift.podspec
pod trunk push Connect-Swift-Mocks.podspec

0 comments on commit 2e49997

Please sign in to comment.