diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a4029d36cc2d1a4ae21919774b8319aa3e71f9b9..9dacc711f72feb145f78b8a76da602bcb86dc763 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,4 +27,8 @@ pages:
   rules:
     # This ensures that only pushes to the default branch will trigger
     # a pages deploy
-    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
\ No newline at end of file
+    #- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
+    - if: '$CI_COMMIT_TAG'
+    - if: '$CI_COMMIT_REF_NAME == "main"'
+      when: always
+    - when: never
\ No newline at end of file