diff --git a/.github/workflows/publish-to-cocoapods.yml b/.github/workflows/publish-to-cocoapods.yml new file mode 100644 index 0000000..81bcd9e --- /dev/null +++ b/.github/workflows/publish-to-cocoapods.yml @@ -0,0 +1,25 @@ +name: publish-to-cocoapods + +on: + release: + types: [published] + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Install Cocoapods + run: gem install cocoapods + + - name: Publish to Cocoapods registry + run: | + set -eo pipefail + pod lib lint --allow-warnings + pod trunk push --allow-warnings + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}