add github workflow for mkdocs

This commit is contained in:
Cédric Deltheil 2024-01-08 17:23:07 +01:00 committed by Cédric Deltheil
parent 9b9578cb7e
commit 60981b79a6
2 changed files with 21 additions and 0 deletions

20
.github/workflows/docs.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Deploy docs to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Deploy MkDocs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REQUIREMENTS: ./requirements.docs.txt

1
requirements.docs.txt Normal file
View file

@ -0,0 +1 @@
mkdocs-material==9.5.3