-
Notifications
You must be signed in to change notification settings - Fork 19
37 lines (35 loc) · 964 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 }}