diff options
| author | Rubén Beltran del Río <ben@nsovocal.com> | 2018-06-26 21:55:19 +0000 |
|---|---|---|
| committer | Rubén Beltran del Río <ben@nsovocal.com> | 2018-06-26 21:55:19 +0000 |
| commit | 3dcbd5753b75fd76cfeeb674166662eb8c21674c (patch) | |
| tree | 2bd17a056f38ff9589c80267b4aa82074b9c8513 /.gitlab-ci.yml | |
| parent | 7b295172b67ee3f03c5da85953f9ca3b176aa135 (diff) | |
| parent | 2bb8e347ed38948e8a65a479d3c1f64b7f7a5d9b (diff) | |
Merge branch 'feature/rbdr-deploy-to-pages' into 'develop'
Deploy to Pages
See merge request rbdr/sumo!13
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 |