name: Build and Deploy Sphinx Docs on: push: branches: ["main"] paths: - "docs/**" pull_request: branches: ["main"] paths: - "docs/**" workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: "pages" cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install dependencies run: | pip install -r docs/requirements.txt - name: Build Sphinx run: | sphinx-build -b html docs/zh docs/_build/html/zh sphinx-build -b html docs/en docs/_build/html/en printf '%s\n' \ '' \ '' \ '
' \ ' ' \ ' ' \ ' ' \ '