Merge pull request #187 from wkentaro/ci/bump-node24-actions #190
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |