🔖 [Release] 1.1.0 #17
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: 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 |