Skip to content

Commit

Permalink
adding deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Beas authored and Victor Beas committed Dec 27, 2024
1 parent 670ce9d commit d8535cd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit d8535cd

Please sign in to comment.