feat: deploy docs to github pages on github actions

This commit is contained in:
debugtalk
2021-11-19 14:38:19 +08:00
parent d306452b19
commit c3f80d3d1e
3 changed files with 22 additions and 5 deletions

18
.github/workflows/deploy-mkdocs.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Deploy docs to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy docs to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material # including mkdocs
- run: mkdocs gh-deploy