6
6
- ' *'
7
7
8
8
jobs :
9
- # Just comment out for now, uncomment when Carthage supports archives with XCFrameworks
10
- # carthage:
11
- # name: Upload Carthage binary
12
- # runs-on: macos-latest
13
- # steps:
14
- # - uses: actions/checkout@v2
15
- # - uses: AckeeCZ/[email protected]
16
- # - uses: actions/cache@v1
17
- # with:
18
- # path: Carthage
19
- # key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
20
- # restore-keys: |
21
- # ${{ runner.os }}-carthage-
22
- # - name: Build
23
- # run: carthage build --no-skip-current --cache-builds
24
- # - name: Archive
25
- # run: carthage archive Reqres
26
- # - uses: xresloader/upload-to-github-release@v1
27
- # if: startsWith(github.ref, 'refs/tags/')
28
- # env:
29
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
- # with:
31
- # file: Reqres.framework.zip
32
- # tags: true
33
- # draft: false
9
+ carthage :
10
+ name : Upload Carthage binary
11
+ runs-on : macos-latest
12
+ steps :
13
+
14
+
15
+ - name : Build
16
+ run : carthage build --no-skip-current --cache-builds --use-xcframeworks
17
+ - name : Archive
18
+ run : |
19
+ DST=$PWD
20
+ mkdir -p /tmp/Reqres
21
+ mv Carthage/Build/*.xcframework /tmp/Reqres
22
+ cd /tmp
23
+ zip -r "$DST/"Reqres.xcframework.zip Reqres
24
+ - uses : xresloader/upload-to-github-release@v1
25
+ if : startsWith(github.ref, 'refs/tags/')
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ with :
29
+ file : Reqres.xcframework.zip
30
+ tags : true
31
+ draft : false
34
32
cocoapods :
35
33
name : Push podspec to Cocoapods trunk
36
34
runs-on : macos-latest
37
35
steps :
38
- - uses : actions/checkout@v2
39
-
40
- - name : Install gems
41
- run : bundle install
36
+
37
+
42
38
- name : Push podspec
43
- run : bundle exec pod trunk push --allow-warnings
39
+ run : pod trunk push --allow-warnings
44
40
env :
45
41
COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
0 commit comments