Commit f24f7157 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

fastlane: create lane to submit app

This patch adds lane to submit a new version to TestFlight.

Change-Id: I1e795c28c6ed63c1de123c11cbefb7d470463d49
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 0663e5ce
......@@ -37,6 +37,40 @@ platform :ios do
)
end
desc "Submit a new Beta Build to Apple TestFlight"
lane :beta do
ensure_git_status_clean
unlock_keychain
match(
type: "appstore"
)
increment_build_number
gym(
scheme: "Ring",
clean: true,
configuration: "Release",
export_method: 'app-store',
)
pilot(
skip_waiting_for_build_processing: true
)
new_build_number = Actions.lane_context[Actions::SharedValues::BUILD_NUMBER]
current_version = get_version_number
message = "project: bump to version #{current_version}.#{new_build_number} for release"
clean_build_artifacts
commit_version_bump(
xcodeproj: "Ring.xcodeproj",
message: message,
force: true
)
push_to_git_remote(
local_branch: "HEAD",
remote_branch: refs/for/master/fastlane,
force: false,
tags: false
)
end
after_all do |lane|
# This block is called, only if the executed lane was successful
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment