Skip to content

Commit c48455f

Browse files
committed
feat: redeploy fresh model weights and demo trajectories
1 parent b8646f8 commit c48455f

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/hf_sync.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,25 @@ jobs:
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
@@ -44,3 +62,4 @@ jobs:
4462
4563
4664
65+

0 commit comments

Comments
 (0)