Use altool to upload builds

This commit is contained in:
Arkadiusz Fal
2022-08-15 17:14:09 +02:00
parent 7607cf24b2
commit 30889619fd
4 changed files with 27 additions and 9 deletions

View File

@@ -26,8 +26,6 @@ end
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
xcode_select("/Applications/Xcode-13.4.1.app")
app_store_connect_api_key(
key_id: DEVELOPER_KEY_ID,
issuer_id: DEVELOPER_KEY_ISSUER_ID,
@@ -46,15 +44,16 @@ platform :ios do
output_name: "Yattee-#{version}-iOS.ipa",
)
upload_to_testflight
altool(
altool_app_type: "ios",
altool_ipa_path: lane_context[SharedValues::IPA_OUTPUT_PATH]
)
end
end
platform :tvos do
desc "Push a new beta build to TestFlight"
lane :beta do
xcode_select("/Applications/Xcode-13.4.1.app")
app_store_connect_api_key(
key_id: DEVELOPER_KEY_ID,
issuer_id: DEVELOPER_KEY_ISSUER_ID,
@@ -73,15 +72,16 @@ platform :tvos do
output_name: "Yattee-#{version}-tvOS.ipa",
)
upload_to_testflight
altool(
altool_app_type: "tvos",
altool_ipa_path: lane_context[SharedValues::IPA_OUTPUT_PATH]
)
end
end
platform :mac do
desc "Push a new beta build to TestFlight"
lane :beta do
xcode_select("/Applications/Xcode-13.4.1.app")
app_store_connect_api_key(
key_id: DEVELOPER_KEY_ID,
issuer_id: DEVELOPER_KEY_ISSUER_ID,
@@ -100,6 +100,9 @@ platform :mac do
output_name: "Yattee-#{version}-macOS.app",
)
upload_to_testflight
altool(
altool_app_type: "macos",
altool_ipa_path: lane_context[SharedValues::PKG_OUTPUT_PATH]
)
end
end

5
fastlane/Pluginfile Normal file
View File

@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-altool', git: "git@github.com:yattee/fastlane-plugin-altool.git"