diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b9395ae77745ee918e3aa58bb402934268932cd2..d27918b18df10b85efde4f60b8e7da61ad0e9747 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,7 +52,7 @@ release-artifacts:
     paths:
       - "build/libs/*"
   rules:
-    - if: "$CI_COMMIT_TAG != '' && $CI_COMMIT_BRANCH == 'master'"
+    - if: "$CI_COMMIT_TAG && $CI_COMMIT_BRANCH == 'master'"
       when: on_success
 release-docs:
   stage: "release"