datacap/.github/workflows/publish-docs.yml
2023-10-17 16:48:20 +08:00

20 lines
397 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 -r requirements.txt
- run: cd docs/ && mkdocs gh-deploy --force
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}