Merge pull request #22 from diamirio/update-readme #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CocoaPods | |
on: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Ruby 2.7.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7.7' | |
bundler-cache: true | |
- run: bundle install | |
- name: Cocoapods -> lint podspec and test | |
run: bundle exec pod lib lint --verbose --platforms=ios | |
deploy: | |
needs: | |
- lint | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 2.6 | |
- run: bundle install | |
- name: Publish Pod | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
run: bundle exec pod trunk push Endpoints.podspec |