-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.36 KB
/
dev.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
43
44
name: swift-create-sign-upload-xcframework
on:
push:
branches:
- develop
env:
XCFRAMEWORK_OUTPUT_DIR: .xcframework
XCFRAMEWORK_NAME: UIViewKit
XCFRAMEWORK_NAME_WITH_EXTENSION: UIViewKit.xcframework
jobs:
create-xcframework:
runs-on: macos-latest
steps:
- name: Test Paths
run: ls -a
- name: Import Code-Signing Certificates
uses: Apple-Actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.CERTIFICATE_P12 }}
p12-password: ${{ secrets.CERTIFICATE_P12_PASSWORD }}
- name: Checkout Project
uses: actions/[email protected]
- name: Test Content of current folder
run: ls -a
- name: Test Path echo
run: echo $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION
- name: Build XCFramework
run: ./buildxcf.sh
- name: Sign XCFramework
run: |
codesign -s "iPhone Distribution: Blazej SLEBODA (43VBDTY4E3)" \
--force \
--deep \
-- $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION
- name: Test Content of current folder
run: ls -a $XCFRAMEWORK_OUTPUT_DIR
- name: Upload XCFramework as Artifact
uses: actions/upload-artifact@v4
with:
name: $XCFRAMEWORK_NAME_WITH_EXTENSION
path: $XCFRAMEWORK_OUTPUT_DIR/UIViewKit.xcframework/