Skip to content

Commit c95b24d

Browse files
authored
[#225] 테스트플라이트 자동 배포가 실패하는 현상을 해결한다 (#226)
* style: 정확하게 테플이라는 이름 명시 * refactor: 앱 빌드 시간 단축 * chore: fastlane/README.md 추적 끄기
1 parent 21cf83b commit c95b24d

4 files changed

Lines changed: 16 additions & 43 deletions

File tree

.github/workflows/testflight.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
beta:
13+
testflight:
1414
runs-on: macos-latest
1515
timeout-minutes: 45
1616
env:
@@ -45,4 +45,4 @@ jobs:
4545
printf '%s' "$ASC_KEY_CONTENT" | base64 -D > "$ASC_KEY_PATH"
4646
4747
- name: Upload to TestFlight
48-
run: bundle exec fastlane beta
48+
run: bundle exec fastlane testflight

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ vendor/bundle/
2727

2828
# Fastlane
2929
.fastlane/
30+
fastlane/README.md
3031
fastlane/report.xml
3132
fastlane/test_output/
3233
fastlane/logs/

fastlane/Fastfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ platform :ios do
1111
end
1212

1313
private_lane :build_for_store do
14+
if ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"].to_s.strip.empty?
15+
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "30"
16+
end
17+
18+
if ENV["FASTLANE_XCODEBUILD_SETTINGS_RETRIES"].to_s.strip.empty?
19+
ENV["FASTLANE_XCODEBUILD_SETTINGS_RETRIES"] = "5"
20+
end
21+
1422
api_key = asc_api_key
1523

1624
setup_ci if ENV["CI"]
@@ -37,7 +45,7 @@ platform :ios do
3745
next api_key
3846
end
3947

40-
lane :beta do
48+
lane :testflight do
4149
api_key = build_for_store
4250

4351
upload_to_testflight(
@@ -46,6 +54,10 @@ platform :ios do
4654
)
4755
end
4856

57+
lane :testflight_build_only do
58+
build_for_store
59+
end
60+
4961
lane :release do
5062
api_key = build_for_store
5163

fastlane/README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)