-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (39 loc) · 1.1 KB
/
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
38
39
40
41
name: Deploy
on:
push:
tags:
- '*'
jobs:
carthage:
name: Upload Carthage binary
runs-on: macos-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: AckeeCZ/load-xcode-version@1.1.0
- name: Build
run: carthage build --no-skip-current --cache-builds --use-xcframeworks
- name: Archive
run: |
DST=$PWD
mkdir -p /tmp/Reqres
mv Carthage/Build/*.xcframework /tmp/Reqres
cd /tmp
zip -r "$DST/"Reqres.xcframework.zip Reqres
- uses: xresloader/upload-to-github-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: Reqres.xcframework.zip
tags: true
draft: false
cocoapods:
name: Push podspec to Cocoapods trunk
runs-on: macos-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: AckeeCZ/load-xcode-version@1.1.0
- name: Push podspec
run: pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}