regenerate models to include new `DFYEmailAccountOrder.forwarding_mod… #16
Workflow file for this run
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: docs | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v*.*.*"] | |
| pull_request: | |
| paths: | |
| - "docs/**" | |
| - "docs_src/**" | |
| - "mkdocs.yml" | |
| - "README.md" | |
| - "src/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - run: uv run python scripts/docs.py sync --check | |
| - run: uv run mkdocs build --strict | |
| deploy: | |
| if: github.event_name == 'push' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - run: git config user.name "github-actions[bot]" | |
| - run: git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Deploy versioned docs (tag push) | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| uv run mike deploy --push --update-aliases --alias-type redirect "$VERSION" latest | |
| uv run mike set-default --push latest | |
| - name: Deploy dev docs (main push) | |
| if: github.ref == 'refs/heads/main' | |
| run: uv run mike deploy --push --alias-type redirect dev |