Update fastlane

iOS
mlch911 4 years ago
parent b2ef4c6bc5
commit 04a7082d92

@ -28,14 +28,7 @@ platform :ios do
lane :release do lane :release do
begin begin
bump_build bump_build
build_ios_app( build_app
workspace: ENV['WORKSPACE'],
configuration: 'Release',
scheme: ENV['SCHEME'],
clean: true,
xcargs: '-allowProvisioningUpdates',
include_symbols: true
)
app_store_connect_api_key( app_store_connect_api_key(
key_id: 'NFBM52M2PY', key_id: 'NFBM52M2PY',
issuer_id: '22e070fb-ba6d-4f93-bf6f-1a6415f583fe', issuer_id: '22e070fb-ba6d-4f93-bf6f-1a6415f583fe',
@ -68,6 +61,50 @@ platform :ios do
end end
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 lane :bump_version do
ensure_git_status_clean ensure_git_status_clean

@ -23,6 +23,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
### ios testflight
```sh
[bundle exec] fastlane ios testflight
```
### ios bump_version ### ios bump_version
```sh ```sh

Loading…
Cancel
Save