-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (63 loc) · 2.25 KB
/
main.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: UploadTestFlight
on:
push:
branches: [ develop, main ]
jobs:
upload_testflight:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4.0
- name: Setting Master Key
run: |
echo "$MASTER_KEY" > Tuist/master.key
env:
MASTER_KEY: ${{secrets.MASTER_KEY}}
- name: Install Tuist
run: brew tap tuist/tuist
- run: brew install --formula [email protected]
- run: tuist version
- name: Install Fastlane
run: brew install fastlane
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Tuist clean
run: tuist clean
- name: Tuist fetch
run: tuist fetch
- name: Tuist Signing Decrypt
run: tuist signing decrypt
- name: Set Keychain
run: fastlane set_keychain
env:
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
- name: Setting Xcconfig
run: |
echo "NAVER_OCR_KEY = $NAVER_OCR_KEY" > Projects/App/Resources/APIKey.xcconfig
env:
NAVER_OCR_KEY: ${{secrets.NAVER_OCR_KEY}}
- name: Tuist generate
run: tuist generate
- name: upload TestFlight Prod
if: github.ref == 'refs/heads/main'
run: fastlane tf
env:
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
FASTLANE_API_KEY_ID: ${{ secrets.FASTLANE_API_KEY_ID }}
FASTLANE_API_KEY_ISSUER_ID: ${{ secrets.FASTLANE_API_KEY_ISSUER_ID }}
SLACK_HOOK_URL: ${{ secrets.SLACK_HOOK_URL }}
- name: upload TestFlight Dev
if: github.ref == 'refs/heads/develop'
run: fastlane tfd
env:
KEYCHAIN_NAME: ${{ secrets.KEYCHAIN_NAME }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
FASTLANE_API_KEY_ID: ${{ secrets.FASTLANE_API_KEY_ID }}
FASTLANE_API_KEY_ISSUER_ID: ${{ secrets.FASTLANE_API_KEY_ISSUER_ID }}
SLACK_HOOK_URL: ${{ secrets.SLACK_HOOK_URL }}