Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
SLACK_URL: ${{ secrets.SLACK_URL }}
run: bundle exec fastlane testflight
DISCORD_URL: ${{ secrets.DISCORD_URL }}
run: bundle exec fastlane upload_testflight

- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
source "https://rubygems.org"

gem "fastlane"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
36 changes: 36 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,19 @@ GEM
declarative (0.0.20)
digest-crc (0.7.0)
rake (>= 12.0.0, < 14.0.0)
discordrb (3.3.0)
discordrb-webhooks (~> 3.3.0)
ffi (>= 1.9.24)
opus-ruby
rbnacl (~> 3.4.0)
rest-client (>= 2.1.0.rc1)
websocket-client-simple (>= 0.3.0)
discordrb-webhooks (3.3.0)
rest-client (>= 2.1.0.rc1)
domain_name (0.6.20240107)
dotenv (2.8.1)
emoji_regex (3.2.3)
event_emitter (0.2.6)
excon (0.112.0)
faraday (1.10.4)
faraday-em_http (~> 1.0)
Expand Down Expand Up @@ -112,8 +122,12 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-discord_notifier (0.1.7)
discordrb (~> 3.3.0)
fastlane-sirp (1.0.0)
sysrandom (~> 1.0)
ffi (1.17.2)
ffi (1.17.2-arm64-darwin)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.54.0)
google-apis-core (>= 0.11.0, < 2.a)
Expand Down Expand Up @@ -152,6 +166,7 @@ GEM
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-accept (1.7.0)
http-cookie (1.0.8)
domain_name (~> 0.5)
httpclient (2.9.0)
Expand All @@ -161,23 +176,37 @@ GEM
jwt (2.10.1)
base64
logger (1.7.0)
mime-types (3.7.0)
logger
mime-types-data (~> 3.2025, >= 3.2025.0507)
mime-types-data (3.2025.0624)
mini_magick (4.13.2)
mini_mime (1.1.5)
multi_json (1.15.0)
multipart-post (2.4.1)
mutex_m (0.3.0)
nanaimo (0.4.0)
naturally (2.3.0)
netrc (0.11.0)
nkf (0.2.0)
optparse (0.6.0)
opus-ruby (1.0.1)
ffi
os (1.1.4)
plist (3.7.2)
public_suffix (6.0.2)
rake (13.3.0)
rbnacl (3.4.0)
ffi
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
retriable (3.1.2)
rexml (3.4.1)
rouge (3.28.0)
Expand All @@ -203,6 +232,12 @@ GEM
tty-cursor (~> 0.7)
uber (0.1.0)
unicode-display_width (2.6.0)
websocket (1.2.11)
websocket-client-simple (0.9.0)
base64
event_emitter
mutex_m
websocket
word_wrap (1.0.0)
xcodeproj (1.27.0)
CFPropertyList (>= 2.3.3, < 4.0)
Expand All @@ -222,6 +257,7 @@ PLATFORMS

DEPENDENCIES
fastlane
fastlane-plugin-discord_notifier

BUNDLED WITH
2.6.9
43 changes: 21 additions & 22 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ platform :ios do


desc "Push a new beta build to TestFlight"
lane :testflight do
lane :upload_testflight do

app_store_connect_api_key(
key_id: "#{ENV["APP_STORE_CONNECT_KEY_ID"]}",
Expand Down Expand Up @@ -96,48 +96,47 @@ platform :ios do
build_number: new_build_number
)

slack(
message: "Build Number: #{new_build_number} 배포 준비 시작",
channel: "#run_mile",
slack_url: "#{ENV["SLACK_URL"]}"
discord_notifier(
webhook_url: "#{ENV["DISCORD_URL"]}",
title: "Run Mile 배포 준비",
description: "Build Number: #{new_build_number} 배포를 위해 준비중입니다."
)

setup_ci

match(type: "appstore")

slack(
message: "Build Number: #{new_build_number} 인증서 준비 완료",
channel: "#run_mile",
slack_url: "#{ENV["SLACK_URL"]}"
discord_notifier(
webhook_url: "#{ENV["DISCORD_URL"]}",
title: "Run Mile 인증서 완료",
description: "Build Number: #{new_build_number} 인증서 준비가 완료되었습니다."
)

build_app(
scheme: "Run Mile",
xcodebuild_formatter: "xcpretty"
)

slack(
message: "Build Number: #{new_build_number} 아카이브 완료",
channel: "#run_mile",
slack_url: "#{ENV["SLACK_URL"]}"
discord_notifier(
webhook_url: "#{ENV["DISCORD_URL"]}",
title: "Run Mile 아카이브 완료",
description: "Build Number: #{new_build_number} 아카이브가 완료되었습니다."
)

upload_to_testflight

slack(
message: "Build Number: #{new_build_number} 배포 성공!",
channel: "#run_mile",
slack_url: "#{ENV["SLACK_URL"]}"
discord_notifier(
webhook_url: "#{ENV["DISCORD_URL"]}",
title: "Run Mile Testflight 배포 완료",
description: "Build Number: #{new_build_number} 테스트 플라이트 배포가 완료되었습니다."
)
end

error do |lane, exception, options|
slack(
message: "Testflight 배포 중 오류가 발생했습니다. #{exception}",
channel: "#run_mile",
success: false,
slack_url: "#{ENV["SLACK_URL"]}"
discord_notifier(
webhook_url: "#{ENV["DISCORD_URL"]}",
title: "Testflight 배포 중 오류가 발생했습니다.",
description: "에러 메시지\n#{exception}"
)
end
end
5 changes: 5 additions & 0 deletions fastlane/Pluginfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

gem 'fastlane-plugin-discord_notifier'