datacap/.github/workflows/publish-docs.yml

21 lines
506 B
YAML
Raw Normal View History

2022-09-19 21:45:00 +08:00
name: Publish docs via GitHub Pages
2023-03-21 20:24:15 +08:00
on:
release:
types: [ published ]
2022-09-19 21:45:00 +08:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
2022-09-21 01:28:27 +08:00
- run: cd docs/ && pip install git+https://${GH_TOKEN}@github.com/qianmoq/mkdocs-material-insiders.git
2022-09-19 21:51:07 +08:00
- run: cd docs/ && pip install -r requirements.txt
- run: cd docs/ && mkdocs gh-deploy --force
2022-09-19 21:45:00 +08:00
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}