Merge branch 'feature/fastlane' into 'main'

Automatic build and deployment to alpha and beta tracks on android and ios

See merge request fabinfra/fabaccess/borepin!29
This commit is contained in:
TheJoKlLa 2021-11-26 01:32:24 +00:00
commit f14dab06c4
2 changed files with 27 additions and 27 deletions

View File

@ -89,7 +89,7 @@ build_Android:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
- Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.aab # saving apk to copy to deploy folder
- Borepin/Borepin.Android/bin/Release/
#- Borepin/Borepin.Android/bin/Release/
# - '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
build_iOS:
@ -108,7 +108,7 @@ build_iOS:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
- Borepin/Borepin.iOS/bin/iPhone/Debug/Borepin.iOS.ipa
- Borepin/Borepin.iOS/bin/iPhone/Debug/
#- Borepin/Borepin.iOS/bin/iPhone/Debug/
# - '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
build_GTK:
@ -189,13 +189,12 @@ deploy_Android_beta:
dependencies:
- build_Android
deploy_iOS:
deploy_iOS_alpha:
variables:
LC_ALL: 'en_US.UTF-8'
LANG: 'en_US.UTF-8'
only:
- alpha
- feature/fastlane
needs:
- build_iOS
stage: deploy
@ -206,8 +205,32 @@ deploy_iOS:
- 'export PATH="/usr/local/opt/ruby/bin:$PATH"'
script:
- 'bundle install'
- 'bundle update fastlane'
- 'bundle exec fastlane pilot upload --api_key_path app-store-credentials.json --ipa Borepin/Borepin.iOS/bin/iPhone/Debug/Borepin.iOS.ipa'
after_script:
- 'rm app-store-credentials.json'
dependencies:
- build_iOS
deploy_iOS_beta:
variables:
LC_ALL: 'en_US.UTF-8'
LANG: 'en_US.UTF-8'
only:
- beta
needs:
- build_iOS
stage: deploy
tags:
- macos
before_script:
- 'echo $app_store_credentials > app-store-credentials.json'
- 'export PATH="/usr/local/opt/ruby/bin:$PATH"'
script:
- 'bundle install'
- 'bundle update fastlane'
- 'bundle exec fastlane pilot upload --api_key_path app-store-credentials.json --ipa Borepin/Borepin.iOS/bin/iPhone/Debug/Borepin.iOS.ipa --distribute_external true --groups Beta --changelog "$CI_COMMIT_MESSAGE"'
after_script:
- 'rm app-store-credentials.json'
dependencies:
- build_iOS

View File

@ -1,23 +0,0 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :custom_lane do
# add actions here: https://docs.fastlane.tools/actions
end
end