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

19 lines
475 B
YAML
Raw Normal View History

2022-09-19 21:45:00 +08:00
name: Publish docs via GitHub Pages
2022-10-10 10:13:44 +08:00
on: push
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 }}