pages:
  image: davidbergstrom/pycommandcenterenv
  stage: deploy
  before_script:
    - git submodule sync --recursive
    - git submodule update --init --recursive
  script:
    - mkdir build
    - cd build
    - cmake ..
    - make -j 3 library
    - cd ../docs
    - make html
    - cd ..
    - mkdir .public
    - cp -r docs/_build/html .public
    - mv .public public
  artifacts:
    paths:
      - public
  only:
    - master