File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 env :
3030 HF_TOKEN : ${{ secrets.HF_TOKEN }}
3131 run : |
32- # Force push with secure error-masking fallback to reveal the raw server rejection message
32+ # 1. Initialize Git LFS in the GitHub runner
33+ git lfs install
34+ git lfs track "*.pt"
35+
36+ # 2. Configure a temporary Git identity for the runner
37+ git config --global user.email "deploy@github.actions"
38+ git config --global user.name "GitHub Actions"
39+
40+ # 3. Untrack .pt binaries from standard Git cache and re-stage them under Git LFS
41+ git rm --cached -r --ignore-unmatch "*.pt"
42+ git add .gitattributes
43+ git add data/trajectories_demo.pt
44+ git add models/mini_dt.pt
45+ git add artifacts/saes/*.pt
46+
47+ # 4. Commit the LFS conversion
48+ git commit -m "chore: convert binaries to Git LFS pointers for Space compatibility" || echo "No changes to commit"
49+
50+ # 5. Force push with secure error-masking fallback
3351 git push --force https://sadhumitha-s:$HF_TOKEN@huggingface.co/spaces/sadhumitha-s/DT-Explorer HEAD:main 2> push_err.txt || {
3452 echo "=== HUGGING FACE PUSH ERROR LOG ==="
3553 if [ -n "$HF_TOKEN" ]; then
4462
4563
4664
65+
You can’t perform that action at this time.
0 commit comments