Update file .gitlab-ci.yml

This commit is contained in:
Kai Kriegel 2023-01-25 00:49:10 +00:00
parent 7f6d90c294
commit 0a846482f0

View File

@ -180,29 +180,39 @@ deploy_Android_Internal:
after_script: after_script:
- 'rm play-store-credentials.json' - 'rm play-store-credentials.json'
pages: upload_binaries:
stage: deploy stage: deploy
needs: needs:
- pack_Android_APK - pack_Android_APK
- pack_iOS - pack_iOS
rules: tags:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - docker
tags: image: curlimages/curl:latest
- docker before_script: []
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest cache: []
variables: script:
LC_ALL: 'en_US.UTF-8' - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/borepin/${CI_COMMIT_TAG}/org.fab_infra.fabaccess-Signed.apk"'
LANG: 'en_US.UTF-8' rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
before_script: release_job:
- 'export VERSION_NUMBER=${CI_COMMIT_TAG:1}' stage: deploy
- 'export BUILD_NUMBER="$CI_PIPELINE_ID"' needs:
script: - upload_binaries
- 'mkdir -p public' image: registry.gitlab.com/gitlab-org/release-cli:latest
- 'cp Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk public/' rules:
artifacts: - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
paths: when: manual
- public script:
- echo "Creating GitLab release…"
release:
name: "Borepin ${CI_COMMIT_TAG}"
description: "GitLab CI auto-created release"
tag_name: "release/${CI_COMMIT_TAG}"
assets:
links:
- name: 'Borepin signed apk'
url: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/borepin/${CI_COMMIT_TAG}/org.fab_infra.fabaccess-Signed.apk"
deploy_Android_Beta: deploy_Android_Beta:
stage: deploy stage: deploy