From 4fab305ccbe585bac729333dded17285ff6b985f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.brones@synchrotron-soleil.fr> Date: Tue, 27 Feb 2024 18:30:41 +0100 Subject: [PATCH] feat: Add relase on tag * Also rename artifacts --- .gitlab-ci.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e987729..a4ac237 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,11 @@ image: python:latest -stages: # List of stages for jobs, and their order of execution - - build - +# Default stages +# .pre +# build +# test +# deploy +# .post build-job: # This job runs in the build stage, which runs first. stage: build @@ -11,5 +14,19 @@ build-job: # This job runs in the build stage, which runs first. - make build - echo "Compile complete." artifacts: + names: "FofbTool" paths: - dist/ + +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 manually + script: + - echo "Running the release job." + release: + tag_name: $CI_COMMIT_TAG + name: 'Release $CI_COMMIT_TAG' + description: 'Release created using the release-cli.' + -- GitLab