diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 04f3eb52064fae22d962dc52dceb865d70a2183b..ae499eb53cbeefcfad335f31438c5ee2877a79a0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -224,7 +224,7 @@ website:
   variables:
     RELEASE: "0.12"
   rules:
-    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+    - if: $CI_COMMIT_BRANCH == "release/0.12"
       when: manual
   script:
     - poetry install --with docs