X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/8f039ab3784bc2390d9855b6f43b3c981f83b11c..7741a3cc37662ab2ff9606bdaffc0317b79a8dd9:/.gitlab-ci.yml?ds=inline 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