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 }}