PR workflow
This commit is contained in:
parent
ede7a752c4
commit
192bfbe7aa
5 changed files with 205 additions and 38 deletions
|
|
@ -29,6 +29,35 @@ platform :ios do
|
|||
APP_IDENTIFIER = ENV['CI_EVALUATION_APP_IDENTIFIER']
|
||||
end
|
||||
|
||||
desc "Description of what the lane does"
|
||||
lane :deployInternalFirebase do
|
||||
ipa_name = "Internal.ipa"
|
||||
buildReleaseIPA(ipa_name: ipa_name)
|
||||
|
||||
firebase_app_distribution(
|
||||
service_credentials_file: FIREBASE_SERVICE_ACCOUNT_FILE,
|
||||
app: FIREBASE_APP_DISTRIBUTION_APP_STAGING,
|
||||
groups: FIREBASE_APP_DISTRIBUTION_GROUPS_QA,
|
||||
ipa_path: "builds/#{ipa_name}",
|
||||
)
|
||||
cleanupKeyChain()
|
||||
end
|
||||
|
||||
lane :buildReleaseIPA do |options|
|
||||
ipa_name = options[:ipa_name]
|
||||
if ipa_name.nil?
|
||||
ipa_name = "InternalBuild.ipa"
|
||||
end
|
||||
setupCodeSigning()
|
||||
|
||||
build_app(
|
||||
scheme: "InitProject",
|
||||
export_method: "ad-hoc",
|
||||
output_directory: "./builds",
|
||||
output_name: ipa_name
|
||||
)
|
||||
end
|
||||
|
||||
lane :setupCodeSigning do
|
||||
password = (0...50).map { ('a'..'z').to_a[rand(26)] }.join
|
||||
cleanupKeyChain()
|
||||
|
|
@ -65,27 +94,6 @@ platform :ios do
|
|||
path: KEYCHAIN_NAME,
|
||||
password: password
|
||||
)
|
||||
end
|
||||
|
||||
desc "Description of what the lane does"
|
||||
lane :deployInternalFirebase do
|
||||
setupCodeSigning()
|
||||
ipa_name = "Internal.ipa"
|
||||
|
||||
build_app(
|
||||
scheme: "InitProject",
|
||||
export_method: "ad-hoc",
|
||||
output_directory: "./builds",
|
||||
output_name: ipa_name
|
||||
)
|
||||
|
||||
firebase_app_distribution(
|
||||
service_credentials_file: FIREBASE_SERVICE_ACCOUNT_FILE,
|
||||
app: FIREBASE_APP_DISTRIBUTION_APP_STAGING,
|
||||
groups: FIREBASE_APP_DISTRIBUTION_GROUPS_QA,
|
||||
ipa_path: "builds/#{ipa_name}",
|
||||
)
|
||||
cleanupKeyChain()
|
||||
end
|
||||
|
||||
lane :cleanupKeyChain do
|
||||
|
|
|
|||
|
|
@ -15,14 +15,6 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
|||
|
||||
## iOS
|
||||
|
||||
### ios setupCodeSigning
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane ios setupCodeSigning
|
||||
```
|
||||
|
||||
|
||||
|
||||
### ios deployInternalFirebase
|
||||
|
||||
```sh
|
||||
|
|
@ -31,6 +23,22 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
|||
|
||||
Description of what the lane does
|
||||
|
||||
### ios buildReleaseIPA
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane ios buildReleaseIPA
|
||||
```
|
||||
|
||||
|
||||
|
||||
### ios setupCodeSigning
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane ios setupCodeSigning
|
||||
```
|
||||
|
||||
|
||||
|
||||
### ios cleanupKeyChain
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue