X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/7b295172b67ee3f03c5da85953f9ca3b176aa135..b4a89078319901f662528268280e33201f2c0c17:/.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