Skip to content

🔖 [Release] 1.1.0 #17

🔖 [Release] 1.1.0

🔖 [Release] 1.1.0 #17

Workflow file for this run

name: Cocoapods Publish
on:
push:
tags:
- '*'
# Publish action triggers on new tags
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/[email protected]
with:
ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions`
- run: gem install cocoapods
- run: pod spec lint
- run: |
echo 'Writing .netrc file'
cat <<EOF > ~/.netrc
machine trunk.cocoapods.org
login $COCOAPODS_USER
password $COCOAPODS_PASSWORD
EOF
chmod 600 ~/.netrc
name: 'Setup trunk auth'
env:
COCOAPODS_USER: ${{ vars.COCOAPODS_USER }}
COCOAPODS_PASSWORD: ${{ secrets.COCOAPODS_PASSWORD }}
- run: pod trunk push