Skip to content

Commit eeb3245

Browse files
committed
ci: 위젯 프로파일 동기화 워크플로 추가
1 parent 897b3b9 commit eeb3245

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: iOS Code Signing
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
RUBY_VERSION: "3.2"
8+
APP_STORE_TEAM_ID: ${{ secrets.APP_STORE_TEAM_ID }}
9+
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
10+
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
11+
ASC_KEY_PATH: fastlane/AuthKey.p8
12+
SPACESHIP_CONNECT_API_IN_HOUSE: "false"
13+
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
14+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
15+
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
sync-appstore-profiles:
22+
runs-on: macos-latest
23+
timeout-minutes: 20
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v5
28+
29+
- name: Set up Ruby
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
bundler-cache: true
33+
ruby-version: ${{ env.RUBY_VERSION }}
34+
35+
- name: Write App Store Connect API key
36+
env:
37+
ASC_KEY_CONTENT: ${{ secrets.ASC_KEY_CONTENT }}
38+
run: |
39+
printf '%s' "$ASC_KEY_CONTENT" | base64 -D > "$ASC_KEY_PATH"
40+
41+
- name: Sync App Store profiles
42+
run: bundle exec fastlane sync_appstore_profiles

fastlane/Fastfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@ platform :ios do
129129
build_for_store
130130
end
131131

132+
lane :sync_appstore_profiles do
133+
api_key = asc_api_key
134+
135+
match(
136+
api_key: api_key,
137+
type: "appstore",
138+
app_identifier: APP_IDENTIFIERS,
139+
force: true,
140+
readonly: false
141+
)
142+
end
143+
132144
lane :upload_testflight_build do
133145
api_key = asc_api_key
134146
# lane_context는 같은 fastlane 실행 내에서만 유지되므로, 별도 CI step에서는 고정 ipa 경로를 사용한다.

0 commit comments

Comments
 (0)