Feat/testflight (#24)

* feat: deploy app to testflight

* test gh action

* test gh action

* test gh action

* test gh action

* test gh action

* test gh action

* test gh action

* distribute external

* distribute external

* add changelog

* bump version

* bump version

* bump version

* fix actions

* update action
This commit is contained in:
Salvatore Giordano
2021-03-15 15:10:06 +01:00
committed by GitHub
parent 556a51e8be
commit 4649b4c1a7
7 changed files with 114 additions and 12 deletions
+45 -2
View File
@@ -13,13 +13,23 @@ lane :match_me do
type: "adhoc",
app_identifier: [
"io.getstream.flutter",
"io.getstream.flutter.Notifications"
],
readonly: is_ci,
force_for_new_devices: true
)
end
desc "Installs all Certs and Profiles necessary for appstore"
lane :match_appstore do
match(
type: "appstore",
app_identifier: [
"io.getstream.flutter",
],
readonly: is_ci
)
end
platform :ios do
desc "Deploy build to Firebase"
lane :deploy_to_firebase do
@@ -43,4 +53,37 @@ platform :ios do
groups: "ios-stream-testers"
)
end
end
end
platform :ios do
desc "Deploy build to TestFlight"
lane :deploy_to_testflight do
match_appstore
settings_to_override = {
:BUNDLE_IDENTIFIER => "io.getstream.flutter",
:PROVISIONING_PROFILE_SPECIFIER => "match AppStore io.getstream.flutter"
}
gym(
workspace: "./Runner.xcworkspace",
scheme: "Runner",
export_method: "app-store",
export_options: "./fastlane/testflight_gym_export_options.plist",
silent: true,
clean: true,
xcargs: settings_to_override,
include_symbols: true,
output_directory: "./dist",
)
message = changelog_from_git_commits(commits_count: 10)
upload_to_testflight(
groups: ['Public'],
distribute_external: true,
changelog: message,
reject_build_waiting_for_review: true
)
end
end