variables:
  GIT_SUBMODULE_STRATEGY: recursive

image: monachus/hugo

stages:
  - hugo

pages:
  stage: hugo
  script:
  - apt-get update
  - apt-get install -y gnupg
  - curl -sL https://deb.nodesource.com/setup_8.x | bash -
  - apt-get install -y nodejs
  - npm install
  - cd themes/hugo-sui-blog; npm install; cd ../..; pwd
  - hugo
  artifacts:
    paths:
    - public
  only:
  - master

