diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..0f158cafb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release to Cocoapods +on: + release: + types: [published] +jobs: + deploy: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + + - 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 }} \ No newline at end of file