Merge pull request #177 from wkentaro/feat/banner-3x2-grid #184
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@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: '3.10' | |
| - run: make setup | |
| - run: | | |
| python getting_started.py | |
| for f in examples/*.py; do | |
| if [ -x $f ]; then | |
| $f --save | |
| fi | |
| done | |
| - run: ./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 |