Skip to content

Merge pull request #22 from diamirio/update-readme #55

Merge pull request #22 from diamirio/update-readme

Merge pull request #22 from diamirio/update-readme #55

Workflow file for this run

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