From abf688e406c908ce23160222ca63c39b4ffaa9ac Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Wed, 23 Jan 2019 11:09:35 +0100
Subject: [PATCH] new path for stable release

---
 .gitlab-ci.yml | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a498130e..ce2d9359 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,29 +1,32 @@
 image: digitallyseamless/nodejs-bower-grunt
 
 pages:
-  stage: deploy
+  stage: build
   only:
-    - master
+    - develop
   script:
     - npm install -g npm@latest yo grunt-cli generator-reveal bower
     - npm install
     - grunt dist
+    - mkdir latest
+    - mv public/* latest/.
+    - mv latest public/.
 
   artifacts:
     paths:
-      - public/stable
+      - public/latest
 
-  stage: build
+  stage: deploy
   only:
-    - develop
+    - master
   script:
     - npm install -g npm@latest yo grunt-cli generator-reveal bower
     - npm install
     - grunt dist
-    - mkdir latest
-    - mv public/* latest/.
-    - mv latest public/.
+    - mkdir stable
+    - mv public/* stable/.
+    - mv stable public/.
 
   artifacts:
     paths:
-      - public/latest
\ No newline at end of file
+      - public/stable
\ No newline at end of file
-- 
GitLab