feat: rewrite (#23) #26
This file contains 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: Build docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- docs/**/*.* | |
- src/**/*.* | |
- .github/workflows/docs.yml | |
- mkdocs.yml | |
workflow_dispatch: | |
jobs: | |
deploy: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure Git Credentials | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
- name: Install uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install the project | |
run: uv sync --python 3.12 | |
- name: Deploy docs | |
run: uv run mkdocs gh-deploy --force |