Skip to content

Merge pull request #28 from spencerwooo:docs #8

Merge pull request #28 from spencerwooo:docs

Merge pull request #28 from spencerwooo:docs #8

Workflow file for this run

name: pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
actions: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
- name: Install the project's dev dependencies
run: uv sync --group docs
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: Build static site
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv run mkdocs build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4