48 lines
942 B
Ruby
48 lines
942 B
Ruby
|
|
|
|
default_platform(:ios)
|
|
|
|
platform :ios do
|
|
before_all do
|
|
load_asc_api_token
|
|
end
|
|
|
|
desc "Load the App Store Connect API token"
|
|
lane :load_asc_api_token do
|
|
app_store_connect_api_key(
|
|
key_id: ENV["ASC_KEY_ID"],
|
|
issuer_id: ENV["ASC_ISSUER_ID"],
|
|
key_content: ENV["ASC_KEY_P8"],
|
|
is_key_content_base64: true,
|
|
in_house: false
|
|
)
|
|
end
|
|
|
|
desc "Push a new beta build to TestFlight"
|
|
lane :deploy_testing do
|
|
api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
|
|
sync_code_signing(
|
|
api_key: api_key,
|
|
type: "appstore",
|
|
readonly: true,
|
|
)
|
|
|
|
sh(
|
|
"flutter",
|
|
"build",
|
|
"ipa",
|
|
"--release",
|
|
"--build-name=1.0.10",
|
|
"--build-number=4"
|
|
)
|
|
# sign the app (whithout rebuilding it)
|
|
build_app(
|
|
skip_build_archive: true,
|
|
archive_path: "../build/ios/archive/Runner.xarchive"
|
|
)
|
|
upload_to_testflight
|
|
end
|
|
end
|
|
|
|
|