From cea7baa540a62fd86e7bd6b2c42240f9088e2afb Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Wed, 23 Jan 2019 10:52:37 +0100
Subject: [PATCH] latest and stable deploy

---
 .gitlab-ci.yml | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 02769824..c90b646a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,18 +1,27 @@
 image: digitallyseamless/nodejs-bower-grunt
 
 pages:
-  stage: deploy
+  stage: deploy-stable
   only:
     - master
   script:
-    - npm install --global npm@latest
-    - npm install --global yo
-    - npm install -g grunt-cli
-    - npm install -g generator-reveal
-    - npm install -g bower
+    - npm install -g npm@latest yo grunt-cli generator-reveal bower
     - npm install
     - grunt dist
 
   artifacts:
     paths:
-      - public
+      - public/stable
+
+pages:
+  stage: deploy-unstable
+  only:
+    - develop
+  script:
+    - npm install -g npm@latest yo grunt-cli generator-reveal bower
+    - npm install
+    - grunt dist
+
+  artifacts:
+    paths:
+      - public/latest
\ No newline at end of file
-- 
GitLab