diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 583a023cfee10a8ffa10ce58c502a27eea119785..92460efffecf760b7d739cb8c96f657cebb26205 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,14 +4,11 @@ pages:
   cache:
     paths:
     - node_modules/
-
   script:
   - yarn install
   - yarn run build
-
   artifacts:
     paths:
     - public
-  
-  only:
-  - master
\ No newline at end of file
+  rules:
+    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH