Categories
DevOps Documentation git

Deploying Mkdocs with Gitlab CI and Gitlab Pages

Gitlab does not have mkdocs in their prexisting ci/cd templates. .gitlab-ci.yml On your repo create a .gitlab-ci.yml file with the following contents: image: python:3.8-buster before_script: – pip install –upgrade pip && pip install -r requirements.txt pages: stage: deploy script: – mkdocs build – mv site public artifacts: paths: – public only: – master All Gitlab […]