image: node:7

before_script:
  - npm install

build:
  script:
    - npm run build

test:
  script:
    - npm run test

pages:
  stage: deploy
  script:
  - cd public-site && npm install && ./node_modules/.bin/hexo generate
  artifacts:
    paths:
    - public-site/public
  only:
  - master

image: node:7

before_script:
  - npm install

build:
  script:
    - npm run build

test:
  script:
    - npm run test

pages:
  stage: deploy
  script:
  - cd public-site && npm install && ./node_modules/.bin/hexo generate
  - mv public-site/public ./public
  artifacts:
    paths:
    - public
  only:
  - master

Move Hexo generated files around to work around Gitlab pages bug
Move Hexo generated files around to work around Gitlab pages bug
