diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..ec4469e35620d6fecf4ec6e503dbcd282c1fc12e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +image: python:3.10 + +stages: + - build + - deploy + +variables: + GIT_SUBMODULE_STRATEGY: recursive + PAGES_DIR: public + +before_script: + - python -m pip install --upgrade pip + - pip install furo + - pip install sphinx + - pip install sphinx-rtd-theme + +build: + stage: build + script: + - mkdir -p $PAGES_DIR + - sphinx-build -b html docs $PAGES_DIR + artifacts: + paths: + - $PAGES_DIR + +pages: + stage: deploy + script: + - echo "Deploying GitLab Pages" + artifacts: + paths: + - $PAGES_DIR + expire_in: 30 days + only: + - main