Skip to content

Update docs.yml

Update docs.yml #56

Workflow file for this run

name: Deploy Documentation
on:
push:
paths:
- docs/**
- mkdocs.yml
- pyproject.toml
- .github/workflows/docs.yml
workflow_dispatch:
jobs:
deploy:
name: Deploy Documentation
environment: main
runs-on: ubuntu-latest
steps:
- name: Set Up Git Credentials
uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://username:${{ secrets.GH_PAT }}@github.com
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Set Up uv
uses: astral-sh/setup-uv@v3
with:
version: 0.5.x
enable-cache: true
- name: Install Dependencies
run: uv sync --only-group docs
- name: Build Documentation
run: uv run mkdocs build
env:
FONTAWESOME_PKG_TOKEN: ${{ secrets.FONTAWESOME_PKG_TOKEN }}
- name: Deploy to Vercel
run: npx vercel --yes --token ${{ secrets.VERCEL_TOKEN }} ${{ github.ref_name == 'main' && '--prod' || '' }}
working-directory: site
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}