-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (33 loc) · 1.08 KB
/
carthage-release.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
42
name: Build and Release Framework
on:
release:
types: [published]
jobs:
build-and-release:
# TODO: Change back to macos-latest once it points to macOS 14 (Q2 '24)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Install xcodeproj
run: sudo gem install xcodeproj
- name: Update Compile Sources
run: ruby ./Scripts/update_compile_sources.rb
- name: Build Framework
run: |
chmod +x ./Scripts/build_frameworks.sh
./Scripts/build_frameworks.sh
- name: Archive Framework
run: zip -r ./SmileID.xcframework.zip ./Frameworks/SmileID.xcframework
- name: Upload Framework to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./SmileID.xcframework.zip
asset_name: SmileID.framework.zip
asset_content_type: application/zip