Skip to content

Commit

Permalink
fix: deliver right build
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Dec 2, 2024
1 parent 3de5b77 commit fedc9dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ platform :ios do

begin
setup_signing(keychain_info)
bump_build_number
build_num = bump_build_number
build_app_with_signing(keychain_info)
deliver_production
deliver_production(build_num)
ensure
cleanup_keychain(keychain_info)
end
Expand Down Expand Up @@ -235,6 +235,7 @@ platform :ios do
xcodeproj: "./ios/App/App.xcodeproj",
skip_info_plist: true
)
build_num
end

private_lane :import_cert do |options|
Expand Down Expand Up @@ -322,7 +323,7 @@ platform :ios do
changelog: changelog
)
end
private_lane :deliver_production do
private_lane :deliver_production do |build_num|
api_key = app_store_connect_api_key(
key_id: ENV['APPLE_KEY_ID'],
issuer_id: ENV['APPLE_ISSUER_ID'],
Expand All @@ -340,6 +341,7 @@ platform :ios do
changelog: changelog
)
deliver(
build_number: build_num,
api_key: api_key,
force: true,
skip_binary_upload: true,
Expand Down

0 comments on commit fedc9dd

Please sign in to comment.