File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3232 git config --global user.email "github-actions@github.com"
3333 git config --global user.name "GitHub Actions Sync Bot"
3434
35+ # Remove the data folder from the local commit history so we don't push the heavy CSVs
36+ # Since HF only needs the backend code and models, not raw data
37+ git rm -rf data/ || true
38+ git commit -m "chore: Remove data directory for Hugging Face deployment" || true
39+
3540 # Add the HF remote and push
3641 git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$HF_SPACE_NAME
3742
38- # Push the main branch to Hugging Face (force push to ensure it matches GitHub exactly)
43+ # Push the main branch to Hugging Face
3944 git push --force hf main:main
You can’t perform that action at this time.
0 commit comments