From b85269704bbb14f7ecf70335309ce9ab485f3894 Mon Sep 17 00:00:00 2001
From: Yana Kernerman <kernerya@gmail.com>
Date: Sun, 11 Aug 2024 17:30:32 +0200
Subject: [PATCH] run job only for tags

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b477485..9969823 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,7 @@ job_build_artifact:
 job_publish_artifact:
   stage: publish
   rules: # Conditions under which this job should run
-    - if:   $CI_COMMIT_REF_NAME =~ /^.*$/ # Run this job for any branch or merge request event.
+    - if: $CI_COMMIT_TAG # only for tags
       when: always
   image: curlimages/curl:latest # Custom image with curl
   tags:
-- 
GitLab