Skip to content

add demo collection scripts and real gallery index build/validate wor… #1

add demo collection scripts and real gallery index build/validate wor…

add demo collection scripts and real gallery index build/validate wor… #1

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