diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f3766bd11db435accea6423aa1ede25241835865..749355d7712ad76970cb4a5533bd1105d7bf2485 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -354,6 +354,23 @@ release_job: description: '$CI_COMMIT_TAG' + +##### +# Job run when a new tag (release) is created. +##### +release_job: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: $CI_COMMIT_TAG # Run this job when a tag is created + when: always + script: + - echo "running release_job" + release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties + tag_name: '$CI_COMMIT_TAG' + description: '$CI_COMMIT_TAG' + + ########## ## DOC ## ##########