diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e890324b9570db73bc722f6799de39712e048e74..0e36c8036e650bc907a37c41bd3bd5999d7aabab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,25 @@
 
+stages:
+  - test
+  - doc_build
+  - deploy
+
 doctest:
+  stage: test
   image: python:3.7
   script:
     - pip install -r requirements.txt
     - python -m doctest nnfwtbn/*.py
 
 unittest:
+  stage: test
   image: python:3.7
   script:
     - pip install -r requirements.txt
     - python setup.py test
 
-doc:
+doc_build:
+  stage: doc_build
   image: python:3.7
   script:
     - pip install -r requirements.txt
@@ -25,6 +33,15 @@ doc:
       - _public
     expire_in: 1 mos
 
-  
+deploy:
+  stage: deploy
+  dependencies:
+    - doc_build
+  variables:
+	"CI_WEBSITE_DIR": _public/
+  image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer
+  script:
+    - deploy-dfs
+