vikenkd commited on
Commit
fdd0b57
·
1 Parent(s): 4534f8f

[fix]: upgrade code deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_ahf.yaml +3 -2
.github/workflows/sync_ahf.yaml CHANGED
@@ -25,14 +25,15 @@ jobs:
25
  git config --global user.email "$EMAIL_USER"
26
  git config --global user.name "tph-kds"
27
 
28
- # Bước quan trọng: Xóa file .pth khỏi repo (để tránh push binary)
29
  - name: Remove large model files
30
  run: |
31
  find checkpoints -type f -name "*.pth" -delete || true
32
  git rm -f checkpoints/**/*.pth || true
33
  git commit -m "Remove .pth files before syncing to HF Space" || echo "No .pth files to remove"
 
 
 
34
 
35
- # Đảm bảo repo sạch, không lỗi
36
  - name: Clean Git history (optional but safe)
37
  run: |
38
  git fetch origin main
 
25
  git config --global user.email "$EMAIL_USER"
26
  git config --global user.name "tph-kds"
27
 
 
28
  - name: Remove large model files
29
  run: |
30
  find checkpoints -type f -name "*.pth" -delete || true
31
  git rm -f checkpoints/**/*.pth || true
32
  git commit -m "Remove .pth files before syncing to HF Space" || echo "No .pth files to remove"
33
+
34
+ - name: Setup Git LFS
35
+ run: git lfs install
36
 
 
37
  - name: Clean Git history (optional but safe)
38
  run: |
39
  git fetch origin main