-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (39 loc) · 1.35 KB
/
ios_emerge_upload_pr.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
45
46
47
48
name: Emerge PR iOS Upload (Size Analysis)
on:
pull_request:
branches: [main]
paths: [ios/**]
jobs:
build:
runs-on: macos-14
defaults:
run:
working-directory: ./ios
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
- name: Set up Ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.4
bundler-cache: true
- name: Setup gems
run: exec ../.github/scripts/ios/setup.sh
- name: Decode signing certificate into a file
env:
CERTIFICATE_BASE64: ${{ secrets.IOS_DIST_SIGNING_KEY_BASE64 }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > signing-cert.p12
- name: Build & upload iOS size analysis binary to Emerge Tools
run: bundle exec fastlane ios build_upload_emerge
env:
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
ASC_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
SIGNING_KEY_PASSWORD: ${{ secrets.IOS_DIST_SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE_PATH: signing-cert.p12
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
SCHEME: Release
EMERGE_BUILD_TYPE: pull-request