Browse Source

Update .gitlab-ci.yml

Achilleas Pipinellis 3 years ago
parent
commit
f6da695012
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .gitlab-ci.yml

+ 4 - 4
.gitlab-ci.yml

@@ -15,8 +15,8 @@ test:
   artifacts:
     paths:
     - test
-  except:
-  - master
+  rules:
+    - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
 
 pages:
   stage: deploy
@@ -25,5 +25,5 @@ pages:
   artifacts:
     paths:
     - public
-  only:
-  - master
+  rules:
+    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH