diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 80a33fb62b5c289705be6abd5a77f19ea430f458..3dc51899f4e6f1bfac7c22167118979873947a9a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,7 @@ documentation:
     paths:
       - ${CI_PROJECT_DIR}/public
   rules:
-    - if: '${CI_COMMIT_BRANCH} == "main"'
+    - if: $CI_COMMIT_BRANCH == "main"
 
 publish:
   # stage : publish
@@ -31,4 +31,4 @@ publish:
     - python -m build
     - python -m twine upload --repository pypi dist/*
   rules:
-    - if: '${CI_COMMIT_BRANCH} == "main"'
\ No newline at end of file
+    - if: $CI_COMMIT_BRANCH == "main"
\ No newline at end of file