image: python:3.7 before_script: - pip install sphinx - pip install -r requirements.txt stages: - build - deploy build-docs: stage: build script: - sphinx-build -b html docs/source/ docs/build/html artifacts: paths: - docs/build/html only: - main pages: stage: deploy script: - mv docs/build/html public artifacts: paths: - public only: - main