Spaces:
Sleeping
Sleeping
Commit ·
ea4661d
1
Parent(s): 41f07fa
fetch data from HF before prebake in CI
Browse files42 unmodified lines43444546474849505152535442 unmodified linesuv sync --extra devcd frontend && npm ci# `_bootstrap.py` fetches data from Hugging Face on-demand — CI must# be able to reach the Hub. Optional HF_TOKEN unlocks private repos.- name: Fetch data + build static siteenv:HF_TOKEN: ${{ secrets.HF_TOKEN }}run: just static-build- uses: actions/upload-pages-artifact@v3with:42 unmodified lines4344454647484950515253545556575842 unmodified linesuv sync --extra devcd frontend && npm ci# `_bootstrap.py` fetches data from Hugging Face on-demand — but only# when `data/` is empty. The repo tracks CSVs (not FITS), so wipe the# tracked stubs first to trigger a full snapshot download.- name: Fetch data + build static siteenv:HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |rm -rf datauv run python -c "from jellyscope._bootstrap import ensure_data; from pathlib import Path; ensure_data(Path('data'))"just static-build- uses: actions/upload-pages-artifact@v3with:
.github/workflows/pages.yml+7-3