Merge pull request #371 from shunichironomura/Virtual-branch-1196433945 #74
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: Deploy docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/deploy-docs.yml" | |
- "capsula/**" | |
- "docs/**" | |
- "scripts/gen_pages.py" | |
- "mkdocs.yml" | |
- "pyproject.toml" | |
- "README.md" | |
env: | |
PYTHON_VERSION: "3.12" | |
UV_VERSION: "0.4.x" | |
concurrency: | |
group: "deploy-docs" | |
cancel-in-progress: true | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: ${{ env.UV_VERSION }} | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install the project | |
run: uv sync | |
- name: Set up Git | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git fetch --prune --unshallow | |
- name: Update the docs | |
run: uv run -- mike deploy --push dev |