Skip to content

Deploy SDK

Deploy SDK #26

Workflow file for this run

name: Deploy SDK
on:
workflow_dispatch:
inputs:
git-tag:
description: 'Tag'
required: true
type: string
permissions:
contents: write
jobs:
deploy-to-cocoapods:
name: Deploy to cocoapods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
runs-on: macos-14
steps:
- name: Checkout git tag that was previously created
uses: actions/checkout@v4
with:
ref: ${{ inputs.git-tag }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Install cocoapods
run: gem install cocoapods
- name: Push OrttoSDKCore
run: pod trunk push OrttoSDKCore.podspec --allow-warnings --synchronous || true
- name: Push OrttoPushMessaging
run: pod trunk push OrttoPushMessaging.podspec --allow-warnings --synchronous || true
- name: Push OrttoPushMessagingFCM
run: pod trunk push OrttoPushMessagingFCM.podspec --allow-warnings --synchronous || true
- name: Push OrttoPushMessagingAPNS
run: pod trunk push OrttoPushMessagingAPNS.podspec --allow-warnings --synchronous || true
- name: Push OrttoInAppNotifications
run: pod trunk push OrttoInAppNotifications.podspec --allow-warnings --synchronous || true