Skip to content

Commit 2ce2e1c

Browse files
committed
ci: refactor to use official Hugging Face sync action
1 parent c0efebb commit 2ce2e1c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/huggingface-sync.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
fetch-depth: 0
1616
lfs: true
1717

18-
- name: Push to Hugging Face
19-
env:
20-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
21-
run: git push https://suprit4618:$HF_TOKEN@huggingface.co/spaces/suprit4618/semantic-rag-engine HEAD:main -f
18+
- name: Sync to Hugging Face Space
19+
uses: huggingface/hub-sync@v0.1.0
20+
with:
21+
github_repo_id: ${{ github.repository }}
22+
huggingface_repo_id: suprit4618/semantic-rag-engine
23+
hf_token: ${{ secrets.HF_TOKEN }}
24+
repo_type: space

0 commit comments

Comments
 (0)