Skip to content

Fixing cocoapods workflow #2

Fixing cocoapods workflow

Fixing cocoapods workflow #2

name: Cocoapods Publish
on:
release:
types: [created]
workflow_dispatch

Check failure on line 6 in .github/workflows/cocoapods-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cocoapods-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
bundler-cache: true # also runs 'bundle install'
- name: Sanity Check
run: bundle exec pod spec lint
- name: Publish to Cocoapods
run: bundle exec pod trunk push