From d753fcf2933187a50b8cf274e810191092ede47c Mon Sep 17 00:00:00 2001
From: Semyon Krestyaninov <krestyaninov@perx.ru>
Date: Mon, 10 Jun 2024 09:53:24 +0300
Subject: [PATCH] wip

---
 .gitlab-ci.yml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9604fb4..75c225c 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
-- 
GitLab