diff options
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 24 |
1 files changed, 22 insertions, 2 deletions
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 |