[gnome-desktop/jjardon/release_automation] .gitlab-ci.yml: Add job to generate gitlab releases when tagging




commit 9a6c3fccbbbc24b7d96f20c612fbe929ca3ba0b6
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Aug 29 23:24:58 2021 +0100

    .gitlab-ci.yml: Add job to generate gitlab releases when tagging
    
    See docs:
    - https://docs.gitlab.com/ee/user/project/releases/
    - https://docs.gitlab.com/ee/ci/yaml/index.html#release

 .gitlab-ci.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0f2059bf..b40550fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,3 +40,14 @@ build_stable:
     paths:
       - build/meson-dist/
     when: on_success
+
+do_gitlab_release:
+  stage: deploy
+  image: registry.gitlab.com/gitlab-org/release-cli:latest
+  rules:
+    - if: $CI_COMMIT_TAG
+  script:
+    - echo 'Running release_job'
+  release:
+    tag_name: '$CI_COMMIT_TAG'
+    description: 'See NEWS file'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]