Skip to content

ci: ๐Ÿ› ๏ธ update Python version to 3.12 and upgrade setup-uv action to vโ€ฆ #39

ci: ๐Ÿ› ๏ธ update Python version to 3.12 and upgrade setup-uv action to vโ€ฆ

ci: ๐Ÿ› ๏ธ update Python version to 3.12 and upgrade setup-uv action to vโ€ฆ #39

Workflow file for this run

name: ๐Ÿ› ๏ธ Build and ๐Ÿ“š Publish Docs
on:
push:
branches:
- main
workflow_dispatch:
release:
types: [published]
# Ensure only one concurrent deployment
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref}}
cancel-in-progress: true
# Restrict permissions by default
permissions:
contents: write # Required for committing to gh-pages
pages: write # Required for deploying to Pages
pull-requests: write # Required for PR comments
jobs:
deploy:
name: ๐Ÿ“š Publish Docs
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: ๐Ÿ“ฅ Checkout the repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: ๐Ÿ Install uv and set Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
- name: ๐Ÿ—๏ธ Install dependencies
run: |
uv pip install -r pyproject.toml --group docs
- name: โš™๏ธ Configure git for github-actions
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: ๐Ÿ“š Build and Publish Docs
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
run: |
uv run mkdocs gh-deploy --force