Spaces:
Sleeping
Sleeping
Commit ·
0d23ee6
1
Parent(s): 57f9ba4
fix: push LFS objects to HF before git push
Browse files
.github/workflows/sync-hf.yml
CHANGED
|
@@ -18,9 +18,18 @@ jobs:
|
|
| 18 |
- name: Install Git LFS
|
| 19 |
run: git lfs install
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
- name: Pull LFS objects
|
| 22 |
run: git lfs pull
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
- name: Push to HuggingFace Spaces
|
| 25 |
env:
|
| 26 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
| 18 |
- name: Install Git LFS
|
| 19 |
run: git lfs install
|
| 20 |
|
| 21 |
+
- name: Fetch all LFS objects
|
| 22 |
+
run: git lfs fetch --all origin
|
| 23 |
+
|
| 24 |
- name: Pull LFS objects
|
| 25 |
run: git lfs pull
|
| 26 |
|
| 27 |
+
- name: Push LFS objects to HuggingFace
|
| 28 |
+
env:
|
| 29 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 30 |
+
run: |
|
| 31 |
+
git lfs push https://skapoor19:${HF_TOKEN}@huggingface.co/spaces/grasp-explorer/explorer-stage --all
|
| 32 |
+
|
| 33 |
- name: Push to HuggingFace Spaces
|
| 34 |
env:
|
| 35 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|