add demo collection scripts and real gallery index build/validate wor… #1
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: Build Gallery Index | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'gallery/**' | |
| - '.github/workflows/build-gallery-index.yml' | |
| jobs: | |
| build-index: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Build gallery index artifacts | |
| run: python3 gallery/build_gallery_index.py | |
| - name: Ensure generated files are committed | |
| run: git diff --exit-code gallery/gallery-scripts.json gallery/gallery-index.json |