2022-07-08 17:01:38 +08:00
|
|
|
name: Generate Documents
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-08-31 23:45:30 +08:00
|
|
|
- dev
|
2022-07-08 17:01:38 +08:00
|
|
|
paths:
|
2022-07-08 18:10:39 +08:00
|
|
|
- docs/**
|
2022-07-08 17:01:38 +08:00
|
|
|
- .github/workflows/mkdocs.yml
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-09 17:42:06 +08:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
2022-07-08 17:01:38 +08:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2023-02-18 19:27:22 +08:00
|
|
|
- run: |
|
|
|
|
pip install mkdocs-material=="9.*" mkdocs-static-i18n=="0.53"
|
|
|
|
- run: |
|
|
|
|
mkdocs gh-deploy -m "{sha}" --force --ignore-version --no-history
|