Skip to content

Commit

Permalink
[fix] #26 빌드넘버 조회 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Jul 25, 2024
1 parent 0b18972 commit 240c7ca
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,20 @@ platform :ios do
sh("make release")
end

api_key = app_store_connect_api_key(
key_id: ENV['APP_STORE_CONNECT_KEY_ID'],
issuer_id: ENV['APP_STORE_CONNECT_ISSUER_ID'],
key_content: ENV['APP_STORE_CONNECT_API']
)

latest_build_number = latest_testflight_build_number(
api_key: api_key,
app_identifier: "com.pokitmons.pokit"
)

increment_build_number(
xcodeproj: "Projects/App/App.xcodeproj",
build_number: (latest_testflight_build_number + 1).to_s # 최신 TestFlight 빌드 번호보다 1 증가
build_number: (latest_build_number + 1).to_s
)

build_app(
Expand All @@ -48,16 +59,10 @@ platform :ios do
}
)

api_key = app_store_connect_api_key(
key_id: ENV['APP_STORE_CONNECT_KEY_ID'],
issuer_id: ENV['APP_STORE_CONNECT_ISSUER_ID'],
key_content: ENV['APP_STORE_CONNECT_API']
)

upload_to_testflight(
api_key: api_key,
distribute_external: false,
changelog: ""
)
upload_to_testflight(
api_key: api_key,
distribute_external: false,
changelog: ""
)
end
end

0 comments on commit 240c7ca

Please sign in to comment.