Skip to content

Commit 2165b9c

Browse files
committed
Convert workflow to uv for consistency
1 parent 83937fc commit 2165b9c

4 files changed

Lines changed: 423 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Configure Python
18-
uses: actions/setup-python@v5
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
1919
with:
20-
python-version: 3.x
20+
enable-cache: true
21+
22+
- name: Set up Python
23+
run: uv python install
2124

2225
- name: Install dependencies
23-
run: pip install mkdocs # or 'mkdocs-material'
26+
run: uv sync --frozen
2427

2528
- name: Deploy to GitHub Pages
26-
run: mkdocs gh-deploy --force
29+
run: uv run mkdocs gh-deploy --force
2730

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[project]
2+
name = "wiki"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.14"
7+
dependencies = [
8+
"mkdocs>=1.6.1",
9+
"mkdocs-material>=9.7.1",
10+
]

0 commit comments

Comments
 (0)