first test of automatic deployment to google play with fastlane

This commit is contained in:
Kai Kriegel 2021-09-17 01:09:51 +02:00
parent 41af32fc0c
commit 9ded4e57ed
3 changed files with 41 additions and 20 deletions

View File

@ -89,7 +89,7 @@ build_Android:
artifacts:
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.fabinfra.fabaccess.aab # saving apk to copy to deploy folder
- Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess.aab # saving apk to copy to deploy folder
- Borepin/Borepin.Android/bin/Release/
# - '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
@ -145,22 +145,15 @@ build_GTK:
# dependencies:
# - build_job
# deploy_job:
# stage: deploy
# only:
# - tags
# script:
# # Compose a folder for each release based on commit tag.
# # Assuming your tag is Rev1.0.0.1, and your last commit message is 'First commit'
# # the artifact files will be copied to:
# # P:\Projects\YourApp\Builds\Rev1.0.0.1 - First commit\
# - '$commitSubject = git log -1 --pretty=%s'
# - '$deployFolder = $($env:DEPLOY_FOLDER) + "\" + $($env:CI_BUILD_TAG) + " - " + $commitSubject + "\"'
# # xcopy takes care of recursively creating required folders
# - 'xcopy /y ".\$env:EXE_RELEASE_FOLDER\YourApp.exe" "$deployFolder"'
# - 'xcopy /y ".\$env:MSI_RELEASE_FOLDER\YourApp Setup.msi" "$deployFolder"'
# - 'xcopy /y ".\TestResult.xml" "$deployFolder"'
# dependencies:
# - build_job
# - test_job
deploy_android:
stage: deploy
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest
only:
- tags
before_script:
- 'echo $play_store_credentials > play-store-credentials.json'
script:
- 'bundle install'
- 'bundle exec fastlane supply --aab Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.aab --track internal'
dependencies:
- build_Android

5
fastlane/Appfile Normal file
View File

@ -0,0 +1,5 @@
json_key_file("./play-store-credentials.json")
package_name("org.fab_infra.fabaccess")
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile

23
fastlane/Fastfile Normal file
View File

@ -0,0 +1,23 @@
# 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