Skip to content

adding deploy workflow #3

adding deploy workflow

adding deploy workflow #3

Workflow file for this run

name: Deploy to Cocoapods
on:
push:
branches: [ "master" ]
jobs:
build:
name: Deploy KhipuClientIOS to Cocoapods # https://cocoapods.org/pods/KhipuClientIOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Cocoapods
run: pod install --project-directory=Example
- name: Deploy to Cocoapods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
if [ -z "$COCOAPODS_TRUNK_TOKEN" ]; then
echo "Error: COCOAPODS_TRUNK_TOKEN is empty"
else
echo "COCOAPODS_TRUNK_TOKEN is set, proceeding with deployment..."
fi
set -eo pipefail
pod trunk me
pod lib lint --allow-warnings
pod trunk push --allow-warnings