diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5c4373fb062d3d59e5a33e144689376ba635a969..28a61a4d9f2fc7695c6b48833b67e1cfa6da5336 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,4 +85,4 @@ deploy:
         echo "Nothing new to commit.";
       fi
   rules:
-    - if: '$CI_COMMIT_BRANCH == "main"'
+    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'