-
Notifications
You must be signed in to change notification settings - Fork 5
108 lines (92 loc) · 3.61 KB
/
swift.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Bibbi
on:
push:
branches:
- release
pull_request:
branches:
- release
- develop
types:
- closed
jobs:
build:
runs-on: macos-13
strategy:
matrix:
xcodebuild-scheme: ['App']
steps:
- uses: actions/checkout@v3
- uses: jdx/mise-action@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Checkout branch
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Bring Bibbi ignored file with Config
uses: actions/checkout@v3
with:
repository: depromeet/14th-team5-iOS-ignored
path: depromeet/14th-team5-iOS/14th-team5-iOS/XCConfig
token: ${{secrets.ACTION_TOKEN}}
- name: Install Tuist CLI
run: brew install tuist
- name: Install FastLane
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
- run: brew install fastlane
- name: Tuist Clean Command
run: tuist clean
- name: Tuist Fetch Command
run: tuist install
- name: Tuist Generate Commnad
run: tuist generate
- name: fastlane upload_prd_testflight
if: ${{ github.base_ref == 'release' && github.event_name == 'push' }}
env:
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
MATCH_PASSWORD: ${{secrets.MATCH_PASSWORD}}
MATCH_PERSONAL_TOKEN: ${{ secrets.MATCH_PERSONAL_TOKEN}}
PRD_SCHEME: ${{secrets.PRD_SCHEME}}
BUNDLE_ID: ${{secrets.BUNDLE_ID}}
SLACK_HOOK_URL: ${{secrets.SLACK_HOOK_URL}}
WIDGET_BUNDLE_ID: ${{secrets.WIDGET_BUNDLE_ID}}
PROFILE_PATH: ${{secrets.PROFILE_PATH}}
APP_NAME: ${{secrets.APP_NAME}}
APPLE_ID: ${{secrets.APPLE_ID}}
TEAM_ID: ${{secrets.TEAM_ID}}
WIDGET_NAME: ${{secrets.WIDGET_NAME}}
run: fastlane github_action_prd_upload_testflight
- name: fastlane upload_stg_testflight
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop' }}
env:
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
MATCH_PASSWORD: ${{secrets.MATCH_PASSWORD}}
SLACK_HOOK_URL: ${{secrets.SLACK_HOOK_URL}}
MATCH_PERSONAL_TOKEN: ${{ secrets.MATCH_PERSONAL_TOKEN}}
DEV_SCHEME: ${{secrets.DEV_SCHEME}}
BUNDLE_ID: ${{secrets.BUNDLE_ID}}
WIDGET_BUNDLE_ID: ${{secrets.WIDGET_BUNDLE_ID}}
PROFILE_PATH: ${{secrets.PROFILE_PATH}}
APP_NAME: ${{secrets.APP_NAME}}
APPLE_ID: ${{secrets.APPLE_ID}}
TEAM_ID: ${{secrets.TEAM_ID}}
WIDGET_NAME: ${{secrets.WIDGET_NAME}}
run: fastlane github_action_stg_upload_testflight
- name: Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}