Skip to content

✨ Support Pydantic v2 #7

✨ Support Pydantic v2

✨ Support Pydantic v2 #7

Workflow file for this run

name: Build Docs
on:
workflow_dispatch:
push:
branches: [master]
paths:
- "docs/**"
pull_request:
paths:
- "docs/**"
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup Python environment
uses: ./.github/actions/setup-python
- name: Build site zh
run: poetry run mkdocs build -f docs/zh/mkdocs.yml -d ../site/
- name: Build site en
run: poetry run mkdocs build -f docs/en/mkdocs.yml -d ../site/en
- name: Deploy site to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/site
publish_branch: docs-gh-pages