| title | Auto Push to CocoaPod Trunk |
|---|
Table of Contents
Register a new token account
pod trunk register your@email.com -- description "GitHub Actions Token"Once you confirm email verification you can obtain it from private files. ~/.netrc or use following command:
grep -A2 'trunk.cocoapods.org' ~/.netrcCopy the token you've got and go Settings->Secrets of your repo. Add token to Repository secrets with COCOAPODS_TRUNK_TOKEN (can be other name paired with action env)
this is an example:
name: Auto Push Trunk
on:
release:
types:
- created
jobs:
validation:
name: Upload pods to Specs
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: push trunk
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
pod trunk push
pod trunk me clean-sessions --allEnjoy it🎉.
Just modify on section.