Skip to content

Deploy

Deploy #33

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: ["CI main"]
types:
- completed
jobs:
release:
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- uses: actions/checkout@v3
with:
clean: 'true'
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
configFilePath: ./.github/gitversion.yml
- name: Prepare for release
run: |
set -eo pipefail
export LIB_VERSION=${{ steps.gitversion.outputs.SemVer }}
pod spec lint --allow-warnings --skip-import-validation
pod trunk push --allow-warnings --skip-import-validation
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOA_KEY }}