Skip to content

Commit

Permalink
ci: add workflow to publish to CocoaPods (#74)
Browse files Browse the repository at this point in the history
* Add workflow to publish to CocoaPods

* Add setup-ruby action

* Test without any push filter

* Add ruby version

* Re-add push filter for tags only

* Uncomment deploy step
  • Loading branch information
matthewelwell authored Nov 21, 2024
1 parent 56e62da commit 99e4ca6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-to-cocoapods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish SDK to CocoaPods

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'

- name: Install Cocoapods
run: gem install cocoapods

- name: Deploy to Cocoapods
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 comments on commit 99e4ca6

Please sign in to comment.