Skip to content

Merge branch 'fix/cocoapods-publish' #14

Merge branch 'fix/cocoapods-publish'

Merge branch 'fix/cocoapods-publish' #14

name: deploy to cocoapods
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
deploy:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Install cocoapods
run: |
gem install cocoapods
pod setup
perl -i -pe 'if (/^(\s*)def validated\?/) { $_ .= "${1} return true\n" }' "$(gem which cocoapods/validator)"
- name: Deploy to cocoapods
uses: michaelhenry/[email protected]
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}