My devOps pipeline is building the documentation of my python lib. This documentation is built with Sphinx so I export the whole docs/_build folder as an artifact but I don't know how to deploy it as a documentation website.
Here is my doc.yaml:
trigger:
branches:
include:
- main
pool:
vmImage: windows-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.10"
displayName: "Use Python 3.10"
- script: python -m pip install nox
displayName: "Install dependencies"
- script: nox -s docs
displayName: "Build static docs"
- task: PublishBuildArtifacts@1
displayName: "Publish HTML"
inputs:
pathToPublish: "./docs/_build/html/"
artifactName: "documentation"
Note that the build is a static website.