diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f733880e9d159e47d7dc25aeacfc2566dc501c6b..f6cdddba3ad170811fb3d10cd1079310fcb204e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,3 +57,12 @@ release-pypi: - twine upload dist/* only: - tags + +auto-release: + image: inetprocess/gitlab-release + stage: deploy + only: + - tags + script: + - TAG_MESSAGE=`git tag -n9 -l ${CI_COMMIT_TAG} | sed -e "s/^${CI_COMMIT_TAG} //"` + - gitlab-release --message "Automatic release of ${CI_COMMIT_TAG} from ${CI_COMMIT_SHORT_SHA}\n\n${TAG_MESSAGE}"