Skip to content

Commit cdd717c

Browse files
committed
fix: Ignore heavy data folder in HF sync to bypass 10MB limit
1 parent d472889 commit cdd717c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/huggingface.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ jobs:
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

0 commit comments

Comments
 (0)