Rachit-Mangawa commited on
Commit
45ac092
·
1 Parent(s): b6cb752

refactor(deploy): use direct git push to bypass sync action API bug

Browse files
Files changed (1) hide show
  1. .github/workflows/sync.yml +8 -8
.github/workflows/sync.yml CHANGED
@@ -12,11 +12,11 @@ jobs:
12
  uses: actions/checkout@v3
13
  with:
14
  fetch-depth: 0
15
- - name: Sync to Hugging Face
16
- uses: nateraw/huggingface-sync-action@v0.0.5
17
- with:
18
- github_repo_id: ${{ github.repository }}
19
- huggingface_repo_id: ${{ secrets.HF_REPO_ID }}
20
- hf_token: ${{ secrets.HF_TOKEN }}
21
- repo_type: space
22
- private: true
 
12
  uses: actions/checkout@v3
13
  with:
14
  fetch-depth: 0
15
+ lfs: true
16
+
17
+ - name: Push to Hugging Face
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ HF_REPO_ID: ${{ secrets.HF_REPO_ID }}
21
+ run: |
22
+ git push --force https://IDKHowToCodeFR:$HF_TOKEN@huggingface.co/spaces/$HF_REPO_ID main