🔖 [Release] 1.0.29 #12
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/setup-ruby@v1.190.0 | |
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 |