diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c56709..6dbd34b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 0000000..23b44c2 --- /dev/null +++ b/fastlane/Appfile @@ -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 diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 0000000..0f39ea6 --- /dev/null +++ b/fastlane/Fastfile @@ -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