image: node:6.11.1

pages:
  script:
  - npm install
  - npm install gulp -g
  - gulp build --cwd ./themes/starter
  - ./node_modules/hexo/bin/hexo generate
  artifacts:
    paths:
    - public
  cache:
    paths:
      - node_modules
    key: project

  only:
  - master