Skip to content

Commit a075f2e

Browse files
authored
feat: add docs deploy action (#223)
* docs: add short guide for migrations * docs: extend * feat: mkdocs * chore: cleanup * fix: rerun docs gen after fixes * fix: add pyproject becuase we actually need it * chore: add commands to wwork with docs * fix: recipe * feat: deploy docs * chore: naming
1 parent a1ccb54 commit a075f2e

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/deploy_docs.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Deploy Documentation
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
permissions:
10+
contents: write
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
enable-cache: true
28+
29+
- name: Set up Python
30+
run: uv python install
31+
32+
- name: Install the project
33+
run: uv sync --all-extras --dev
34+
35+
- run: uv run mkdocs gh-deploy --force
36+
37+
deploy:
38+
needs: build
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
with:
47+
ref: gh-pages
48+
- name: Setup Pages
49+
uses: actions/configure-pages@v5
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: '.'
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)