.gitlab-ci.yml 352 Bytes
Newer Older
1
image: node:latest
2

3 4 5 6
before_script:
  - yarn
  - npm install -g gulp

7 8
build:
  stage: build
David Haynes's avatar
David Haynes committed
9
  script:
David Haynes's avatar
David Haynes committed
10 11 12 13 14
    - gulp build
  artifacts:
    paths:
      - build/js
      - build/css
David Haynes's avatar
David Haynes committed
15 16
  only:
    - master
17 18

pages:
David Haynes's avatar
David Haynes committed
19
  stage: deploy
20 21
  script:
    - gulp build
David Haynes's avatar
David Haynes committed
22 23
    - mkdir public
    - mv build/* public
24 25
  artifacts:
    paths:
David Haynes's avatar
David Haynes committed
26
      - public
David Haynes's avatar
David Haynes committed
27 28
  only:
    - master