datacap/.github/workflows/publish-docs.yml
2023-03-21 20:24:15 +08:00

21 lines
506 B
YAML

name: Publish docs via GitHub Pages
on:
release:
types: [ published ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: cd docs/ && pip install git+https://${GH_TOKEN}@github.com/qianmoq/mkdocs-material-insiders.git
- run: cd docs/ && pip install -r requirements.txt
- run: cd docs/ && mkdocs gh-deploy --force
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}