diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47efce427cbb855e29844440f93cfb28506bd6b9..37c5b12e1660d54b0a1cc43bfb97e6f21a00aee0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,8 +34,27 @@ build_win10_msvc:
     - cd debug
     - cmake -DCMAKE_BUILD_TYPE=Debug ..
     - cmake --build .
-  
-deploy_doc_web:
+
+deploy_doc_develop:
+  only:
+    refs:
+      - develop
+  stage: deploy
+  needs: ["build_ubuntu_gcc"]
+  dependencies: 
+    - build_ubuntu_gcc
+  tags: 
+    - webserver
+  variables:
+    GIT_STRATEGY: none
+  script:
+    - mv /doc/html /html
+    - chown 33:33 /html -R
+
+deploy_doc_branch:
+  except:
+    refs:
+      - develop
   stage: deploy
   needs: ["build_ubuntu_gcc"]
   dependencies: 
@@ -45,5 +64,6 @@ deploy_doc_web:
   variables:
     GIT_STRATEGY: none
   script:
-    - echo $CI_COMMIT_BRANCH
-    - ls
\ No newline at end of file
+    - mv /doc/html /html/branch/$CI_COMMIT_BRANCH
+    - chown 33:33 /html/branch/$CI_COMMIT_BRANCH -R
+