pepijn223 HF Staff commited on
Commit
18b0652
·
unverified ·
1 Parent(s): da3eb86

also push git lfs objects to space

Browse files
.github/workflows/deploy-release.yml CHANGED
@@ -16,7 +16,18 @@ jobs:
16
  with:
17
  fetch-depth: 0
18
  lfs: true
 
19
  - name: Push to hub
20
  env:
21
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
- run: git push https://mishig:$HF_TOKEN@huggingface.co/spaces/lerobot/visualize_dataset main -f
 
 
 
 
 
 
 
 
 
 
 
16
  with:
17
  fetch-depth: 0
18
  lfs: true
19
+ ref: main
20
  - name: Push to hub
21
  env:
22
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
23
+ run: |
24
+ set -euo pipefail
25
+
26
+ git lfs install --local
27
+
28
+ git remote remove hf 2>/dev/null || true
29
+ git remote add hf "https://mishig:${HF_TOKEN}@huggingface.co/spaces/lerobot/visualize_dataset"
30
+
31
+ # Push large files first, then refs.
32
+ git lfs push hf main
33
+ git push hf main -f