.gitlab-ci.yml 346 Bytes
Newer Older
1 2 3 4 5
image: node:11

dist:
  stage: build

Tad Lispy's avatar
Tad Lispy committed
6 7
  cache:
    key: ${CI_COMMIT_REF_SLUG}
Tad Lispy's avatar
Tad Lispy committed
8 9
    paths:
      - node_modules/
Tad Lispy's avatar
Tad Lispy committed
10

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
  script:
    - make

  artifacts:
    name: "$CI_COMMIT_REF_SLUG"
    expire_in: 1 week
    paths:
      - dist/

pages:
  stage: deploy
  script:
    - mv dist/ public/

  artifacts:
    paths:
      - public/

  only:
    - master