v0.0.1 #1
Workflow file for this run
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: Publish To CocoaPods | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby & Bundle install | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
bundler-cache: true # also runs 'bundle install' | |
- name: Sanity Check | |
run: | | |
bundle exec pod trunk me | |
bundle exec pod spec lint | |
- name: Publish | |
run: | | |
bundle exec pod trunk push |