Skip to content

Commit f839d41

Browse files
committed
ci: add GitHub Actions workflow for continuous deployment to Hugging Face Spaces
1 parent af1354a commit f839d41

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync to Hugging Face Space
2+
3+
on:
4+
push:
5+
branches: [main]
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
9+
jobs:
10+
sync-to-hub:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
lfs: true
17+
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 main -f

0 commit comments

Comments
 (0)