]> git.r.bdr.sh - rbdr/sumo/blobdiff - .gitlab-ci.yml
Merge branch 'feature/rbdr-deploy-to-pages' into 'develop'
[rbdr/sumo] / .gitlab-ci.yml
index e0672f7cdf4707c9e7fc5cc4c64b17d0590d601b..c0930e870a54c80b6a47f053118f20f01403b24c 100644 (file)
@@ -3,15 +3,35 @@ image: node:8
 stages:
   - lint
   - build
 stages:
   - lint
   - build
+  - deploy
+
+cache:
+  key: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA}
+  paths:
+    - node_modules/
+
+before_script:
+    - npm install
 
 lint:
   stage: lint
   script:
 
 lint:
   stage: lint
   script:
-    - npm install
     - npm run lint
 
 build:
   stage: build
   script:
     - npm run lint
 
 build:
   stage: build
   script:
-    - npm install
     - npm run build
     - npm run build
+  artifacts:
+    paths:
+      - dist
+
+pages:
+  stage: deploy
+  script:
+    - mv dist public
+  artifacts:
+    paths:
+      - public
+  only:
+    - develop