adding deploy workflow #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |