Spaces:
Sleeping
Sleeping
[fix]: upgrade code deployment
Browse files
.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
|