refactor(db): dedupe Z.AI migrations, account row mapping, emoji quer… #148
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "docs/**" | |
| - "mkdocs.yml" | |
| # autodoc (mkdocstrings) рендерит API-страницы из docstring в src/, | |
| # поэтому изменения кода тоже должны пере-деплоить доки (#1071). | |
| - "src/**" | |
| - ".github/workflows/docs.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install docs dependencies | |
| # mkdocstrings[python] нужен для autodoc API-страниц из docstring (#1071); | |
| # держим список в синхроне с pyproject.toml [project.optional-dependencies].docs. | |
| run: pip install mkdocs-material 'mkdocstrings[python]>=0.25.0' | |
| - name: Build docs | |
| # --strict: падать на любых warning (битые ссылки, нерезолвленные | |
| # autoref'ы mkdocstrings) — autodoc API-страниц обязан собираться чисто. | |
| run: mkdocs build --strict | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site/ | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |