Skip to content

Commit

Permalink
fix: is_key_content_base64 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Seokki-Kwon committed Oct 16, 2024
1 parent 667cbbd commit 6638349
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 52 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ DerivedData/
*.cer
*.certSigningRequest
*.p12
*.p8
*.mobileprovision
*.provisionprofile

Expand Down
12 changes: 6 additions & 6 deletions HongikYeolgong2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_ASSET_PATHS = "\"HongikYeolgong2/Resources/Preview Content\"";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = P4D4ZQC4YF;
Expand Down Expand Up @@ -1016,7 +1016,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_ASSET_PATHS = "\"HongikYeolgong2/Resources/Preview Content\"";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = P4D4ZQC4YF;
Expand Down Expand Up @@ -1058,7 +1058,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = P4D4ZQC4YF;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.5;
Expand All @@ -1078,7 +1078,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = P4D4ZQC4YF;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.5;
Expand All @@ -1097,7 +1097,7 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = P4D4ZQC4YF;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
Expand All @@ -1115,7 +1115,7 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = P4D4ZQC4YF;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
Expand Down
96 changes: 50 additions & 46 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,57 +18,61 @@ default_platform(:ios)
platform :ios do

desc "Push a new beta build to TestFlight"
lane :beta do
# 앱스토어 토큰 로드
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: "ENV['APP_STORE_CONNECT_API_KEY_KEY']
)
new_build_number = latest_testflight_build_number
version = get_version_number(xcodeproj: "HongikYeolgong2.xcodeproj")
lane :beta do
# 앱스토어 토큰 로드
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: ENV['APP_STORE_CONNECT_API_KEY_KEY'],
is_key_content_base64: true
)

# match 방식 사용
match(git_url: ENV['GIT_URL'],
storage_mode: "git",
type: "appstore",
readonly: true)
new_build_number = latest_testflight_build_number(app_identifier: ENV['APP_IDENTIFIER'])
version = get_version_number(xcodeproj: 'HongikYeolgong2.xcodeproj')

# 빌드 버전설정 이전버전 + 1
# match 방식 사용
match(
git_url: ENV['GIT_URL'],
storage_mode: 'git',
type: 'appstore',
readonly: true
)

# 빌드 버전설정 이전버전 + 1
increment_build_number(
build_number: new_build_number.to_i
)
build_number: new_build_number + 1
)

gym(
clean: true,
export_method: "app-store"
)
gym(
clean: true,
export_method: 'app-store'
)

# 앱빌드
build_app(
scheme: "HongikYeolgong2",
export_method: "app-store"
)
# 앱빌드
build_app(
scheme: 'HongikYeolgong2',
export_method: 'app-store'
)

# 테플에 업로드
upload_to_testflight
# 테플에 업로드
upload_to_testflight

# 디스코드 노티
discord_notifier(
webhook_url: "https://discord.com/api/webhooks/1295354068981776474/KcvWD1Z20p2qTQdP-5mUTyug4Knw7iJDwhkyqlNCaSrREBgBFYJtDL_DcpN7XmoSG-yz",
title: "New TestFlight Build Available!",
description: "새로운 버전 #{version}(#{new_build_number}) 이 TestFlight에 업로드 되었습니다. 🙌",
success: true,
fields: [
{
name: "Version",
value: "#{version}"
},
{
name: "Build",
value: "#{new_build_number}"
}
]
)
end
# 디스코드 노티
discord_notifier(
webhook_url: 'https://discord.com/api/webhooks/1295354068981776474/KcvWD1Z20p2qTQdP-5mUTyug4Knw7iJDwhkyqlNCaSrREBgBFYJtDL_DcpN7XmoSG-yz',
title: 'New TestFlight Build Available!',
description: "새로운 버전 #{version}(#{new_build_number + 1}) 이 TestFlight에 업로드 되었습니다. 🙌",
success: true,
fields: [
{
name: 'Version',
value: version
},
{
name: 'Build',
value: (new_build_number + 1).to_s
}
]
)
end
end

0 comments on commit 6638349

Please sign in to comment.