Add build script and CI workflow for catalog data #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 catalog data | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "concept_sets/**" | |
| - "projects/**" | |
| - "build.py" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - run: python build.py | |
| - uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Rebuild catalog data" | |
| file_pattern: "docs/data.json docs/data_inline.js" |