name: Deploy Docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pages: write id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-pages:
runs-on: ubuntu-latest
timeout-minutes: 30
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
fetch-depth: 0
fetch-tags: true
- name: Checkout coreason-manifest
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
repository: CoReason-AI/coreason-manifest
ref: main
path: coreason-manifest
token: ${{ secrets.GHCR_PAT || secrets.GITHUB_TOKEN }}
fetch-depth: 0
fetch-tags: true
- name: Link coreason-manifest as sibling
run: ln -sfn $(pwd)/coreason-manifest ../coreason-manifest
shell: bash
- name: Checkout coreason-urn-authority
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
repository: CoReason-AI/coreason-urn-authority
path: coreason-urn-authority
token: ${{ secrets.GHCR_PAT || secrets.GITHUB_TOKEN }}
fetch-depth: 0
fetch-tags: true
- name: Link coreason-urn-authority as sibling
run: ln -sfn $(pwd)/coreason-urn-authority ../coreason-urn-authority
shell: bash
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b with:
enable-cache: false
python-version: "3.14"
- name: Install dependencies
run: |
uv python uninstall 3.14t || true
uv python install 3.14
uv venv
uv pip install zensical mkdocs-material mkdocstrings-python
shell: bash
- name: Build Docs
run: uv run zensical build --clean
shell: bash
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 with:
path: site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128