diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fff3fbaa7dffd8e4f92aa9608ea2bd05aef55bdb..c157d9ff32bcfb64bd31da8ca2b404240762393f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,27 +1,32 @@
 variables:
   TERM: linux
-  JEKYLL_ENV: production
 
-before_script:
-  - export LC_ALL="C.UTF-8"
-  - export LANG="en_US.UTF-8"
-  - export LANGUAGE="en_US.UTF-8"
-  - export GEM_HOME=$HOME/gems
-  - export PATH=$HOME/gems/bin:$PATH
-  - gem install jekyll
-  - gem install bundler
-  - bundle install
-
-job:
+build:
   stage: build
   tags:
     - jekyll
+  variables:
+    JEKYLL_ENV: production
+  before_script:
+    - export LC_ALL="C.UTF-8"
+    - export LANG="en_US.UTF-8"
+    - export LANGUAGE="en_US.UTF-8"
+    - export GEM_HOME=$HOME/gems
+    - export PATH=$HOME/gems/bin:$PATH
+    - gem install jekyll
+    - gem install bundler
+    - bundle install
   script:
     - bundle exec jekyll build
   artifacts:
     paths:
     - _site
-  only:
-  - master
-
 
+deploy:
+  stage: deploy
+  tags:
+    - secure
+  dependencies:
+    - build
+  script:
+    - scp -r _site/* dynbot@eris.dynare.org:/srv/www.dynare.org/