Skip to content

Workflow file for this run

name: Publish CocoaPods package
on:
release:
types: [created]
jobs:
publish:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_14.0.app
- name: Publish Pod
run: |
VERSION=$(echo "${VERSION_TAG}" | sed "s|^v\(.*\)$|\1|g")
sed -i '' "s|[[:blank:]]*s\.version[[:blank:]].*|s.version = '${VERSION}'|g" Swift-BigInt.podspec
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
VERSION_TAG: ${{ github.event.release.tag_name }}