diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f1699ae38a689ba129b018f3d0d329ee34a3d25..e5220b229870bbeb443115d7441169c9dcd5cc5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,20 @@ # This file is a template, and might need editing before it works on your project. # Full project: https://gitlab.com/pages/plain-html -image: busybox +image: python:3.8-alpine + +stages: + - deploy pages: + tags: + - sphinx stage: deploy script: - - echo "The site will be deployed to $CI_PAGES_URL" + - python3 -m pip install sphinx rtd + - sphinx-build -b html docs/source/ public/ artifacts: paths: - public - rules: - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + only: + - master