add mkdocs workflow

This commit is contained in:
mauwii 2022-09-14 01:15:33 +02:00
parent 1bd22523b1
commit 2764b48693
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

24
.github/workflows/mkdocs.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Deploy
on:
push:
branches:
- mkdocs
jobs:
build:
name: Deploy docs to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: Tiryoh/actions-mkdocs@v0
with:
mkdocs_version: 'latest' # option
#mkdocs_version: '1.1' # option
requirements: 'docs/requirements.txt' # option
configfile: 'mkdocs.yml' # option
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site