Update fastlane
This commit is contained in:
+45
-8
@@ -28,14 +28,7 @@ platform :ios do
|
||||
lane :release do
|
||||
begin
|
||||
bump_build
|
||||
build_ios_app(
|
||||
workspace: ENV['WORKSPACE'],
|
||||
configuration: 'Release',
|
||||
scheme: ENV['SCHEME'],
|
||||
clean: true,
|
||||
xcargs: '-allowProvisioningUpdates',
|
||||
include_symbols: true
|
||||
)
|
||||
build_app
|
||||
app_store_connect_api_key(
|
||||
key_id: 'NFBM52M2PY',
|
||||
issuer_id: '22e070fb-ba6d-4f93-bf6f-1a6415f583fe',
|
||||
@@ -68,6 +61,50 @@ platform :ios do
|
||||
end
|
||||
end
|
||||
|
||||
lane :testflight do
|
||||
ensure_git_status_clean
|
||||
|
||||
begin
|
||||
bump_build
|
||||
build_app
|
||||
|
||||
app_store_connect_api_key(
|
||||
key_id: 'NFBM52M2PY',
|
||||
issuer_id: '22e070fb-ba6d-4f93-bf6f-1a6415f583fe',
|
||||
key_filepath: '~/AuthKey_NFBM52M2PY.p8',
|
||||
duration: 1200,
|
||||
in_house: false
|
||||
)
|
||||
upload_to_testflight(
|
||||
ipa: lane_context[:IPA_OUTPUT_PATH],
|
||||
team_id: ENV['TEAM_ID'],
|
||||
app_identifier: ENV['BUNDLE_ID'],
|
||||
distribute_external: true,
|
||||
changelog: '【优化】修复bug,优化体验',
|
||||
notify_external_testers: true,
|
||||
groups: ['dev', 'test']
|
||||
)
|
||||
|
||||
clean_build_artifacts
|
||||
rescue => exception
|
||||
revert_bump_build
|
||||
clean_build_artifacts
|
||||
`git checkout . && git clean -df`
|
||||
raise exception
|
||||
end
|
||||
end
|
||||
|
||||
private_lane :build_app do
|
||||
build_ios_app(
|
||||
workspace: ENV['WORKSPACE'],
|
||||
configuration: 'Release',
|
||||
scheme: ENV['SCHEME'],
|
||||
clean: true,
|
||||
xcargs: '-allowProvisioningUpdates',
|
||||
include_symbols: true
|
||||
)
|
||||
end
|
||||
|
||||
lane :bump_version do
|
||||
ensure_git_status_clean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user