-
Notifications
You must be signed in to change notification settings - Fork 30
28 lines (28 loc) · 861 Bytes
/
Copy pathdocs.yml
File metadata and controls
28 lines (28 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
name: docs
on:
push:
branches: [main]
jobs:
update_readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: '3.10'
- run: make setup
- run: |
uv run --extra all python getting_started.py
for f in examples/*.py; do
if [ -x $f ]; then
uv run --extra all $f --save
fi
done
- run: uv run --extra all ./generate_readme.py > README.md
- run: |-
git config --global user.email "www.kentaro.wada@gmail.com"
git config --global user.name "Kentaro Wada"
git add examples/assets README.md assets
git diff-index --cached --quiet HEAD || git commit -m "docs(readme): update with the latest examples"
git push origin main