Skip to content

Merge pull request #89 from gagebenne/dependabot/github_actions/dot-g… #22

Merge pull request #89 from gagebenne/dependabot/github_actions/dot-g…

Merge pull request #89 from gagebenne/dependabot/github_actions/dot-g… #22

Workflow file for this run

name: docs
on:
push:
branches:
- main
permissions:
contents: read
jobs:
docs:
name: Build package documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.11
enable-cache: true
- name: Install hatch
run: |
uv pip install hatch
- name: Build docs
run: hatch run docs:build
- uses: actions/upload-pages-artifact@v3
with:
path: docs
pages:
name: Deploy documentation to GitHub Pages
needs: docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4