Skip to content

Commit f039325

Browse files
committed
Add workflow to deploy docs on commit to main
1 parent 67c2285 commit f039325

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.12'
23+
24+
- name: Install uv
25+
run: python -m pip install uv
26+
27+
- name: Install dependencies
28+
run: uv pip install --system -r requirements.txt
29+
30+
- name: Configure Git
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
35+
- name: Deploy to GitHub Pages
36+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)