diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9604fb49d8049451bf2cb2d6d18a96f82226c9bc..75c225c00a3bf3e70ad84694cb9d371b90ceedf1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,4 +72,20 @@ prepare_release: paths: - vars.env - current_changelog.md - expire_in: 1 week \ No newline at end of file + expire_in: 1 week + +# ----- release ----- + +release: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: $CI_PIPELINE_SOURCE == "pipeline" && $NEEDS_RELEASE == "true" + - if: $CI_PIPELINE_SOURCE == "web" + when: manual + script: + - echo "Start release $VERSION" +# release: +# name: 'Release $VERSION' +# description: '$CI_COMMIT_TAG' +# tag_name: '$VERSION' \ No newline at end of file