From 6db86f51cc4d40e19de35b84c151445e01ae1256 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Thu, 21 Nov 2024 14:58:04 +0000 Subject: [PATCH] Add workflow to publish to CocoaPods --- .github/workflows/publish-to-cocoapods.yml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish-to-cocoapods.yml diff --git a/.github/workflows/publish-to-cocoapods.yml b/.github/workflows/publish-to-cocoapods.yml new file mode 100644 index 0000000..858113f --- /dev/null +++ b/.github/workflows/publish-to-cocoapods.yml @@ -0,0 +1,23 @@ +name: Publish SDK to CocoaPods + +on: + push: + tags: + - "*" + +jobs: + publish: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + + - 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 }}