X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/8f039ab3784bc2390d9855b6f43b3c981f83b11c..2bb8e347ed38948e8a65a479d3c1f64b7f7a5d9b:/.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0672f7..c0930e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,15 +3,35 @@ image: node:8 stages: - lint - build + - deploy + +cache: + key: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA} + paths: + - node_modules/ + +before_script: + - npm install lint: stage: lint script: - - npm install - npm run lint build: stage: build script: - - npm install - npm run build + artifacts: + paths: + - dist + +pages: + stage: deploy + script: + - mv dist public + artifacts: + paths: + - public + only: + - develop