From abe6a3b269f7d961fa246dc4454a01ff9186fab4 Mon Sep 17 00:00:00 2001 From: Seokki-Kwon Date: Wed, 16 Oct 2024 16:03:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20api=20key=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 73e42e5..cb47615 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -19,7 +19,12 @@ platform :ios do desc "Push a new beta build to TestFlight" lane :beta do -app_store_connect_api_key(is_key_content_base64: true, in_house: false) +# 앱스토어 토큰 로드 +app_store_connect_api_key( + key_id: ENV['APP_STORE_CONNECT_API_KEY_KEY_ID'], + issuer_id: ENV['APP_STORE_CONNECT_API_KEY_ISSUER_ID'], + key_content: "-----BEGIN EC PRIVATE KEY-----\ENV['APP_STORE_CONNECT_API_KEY_KEY']\n-----END EC PRIVATE KEY-----" +) new_build_number = latest_testflight_build_number version = get_version_number(xcodeproj: "HongikYeolgong2.xcodeproj") @@ -28,6 +33,8 @@ app_store_connect_api_key(is_key_content_base64: true, in_house: false) storage_mode: "git", type: "appstore", readonly: true) + +# 빌드 버전설정 이전버전 + 1 increment_build_number( build_number: new_build_number.to_i ) @@ -37,6 +44,16 @@ app_store_connect_api_key(is_key_content_base64: true, in_house: false) export_method: "app-store" ) +# 앱빌드 + build_app( + scheme: "HongikYeolgong2", + export_method: "app-store" + ) + +# 테플에 업로드 + upload_to_testflight + +# 디스코드 노티 discord_notifier( webhook_url: "https://discord.com/api/webhooks/1295354068981776474/KcvWD1Z20p2qTQdP-5mUTyug4Knw7iJDwhkyqlNCaSrREBgBFYJtDL_DcpN7XmoSG-yz", title: "New TestFlight Build Available!", @@ -53,11 +70,5 @@ discord_notifier( } ] ) - build_app( - scheme: "HongikYeolgong2", - export_method: "app-store" - ) - - upload_to_testflight end end