Skip to content

Updated workflow for cocoa pod push #5

Updated workflow for cocoa pod push

Updated workflow for cocoa pod push #5

Workflow file for this run

name: Push CocoaPod on Tag
on:
push:
tags:
- '*'
jobs:
push_pod:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby environment
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Make sure this version matches your project's Ruby version
- name: Install CocoaPods
run: gem install cocoapods
- name: Validate Podspec
run: |
cd ORLib
pod lib lint ORLib.podspec
- name: Push to CocoaPods Trunk
run: |
cd ORLib
pod trunk push ORLib.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}