-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (60 loc) · 2.31 KB
/
ios.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: iOS CD
on:
push:
tags:
- ios/*
jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Cached Konan
uses: actions/cache@v2
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-konan-
- name: Cached Gradle
uses: actions/cache@v2
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Decrypt large secret
run: ./.github/scripts/decrypt_secret.sh
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Download the Apple Worldwide Developer Relations Intermediate Certificate
working-directory: ./iosApp/fastlane
run: curl -o AppleWWDRCAG3.cer https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
- name: Install the Apple certificate and provisioning profile
working-directory: ./iosApp
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
KEYCHAIN_NAME: app-signing
run: fastlane setup_certificates_lane
- name: Pre-build with Gradle
run: ./gradlew :ios-compose-kit:linkPodReleaseFrameworkIosArm64
- name: AppStore build lane with gym
working-directory: ./iosApp
run: fastlane appstore_build_gym_lane
- name: AppStore publish lane with deliver
working-directory: ./iosApp
run: fastlane appstore_publish_deliver_lane
- name: Archive build artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-artifacts
path: |
iosApp/iosApp.app.dSYM.zip
iosApp/iosApp.ipa
iosApp/fastlane/test_output/report.html
/Users/runner/Library/Logs/gym/iosApp-iosApp.log
/Users/runner/Library/Logs/scan/iosApp-iosApp.log