mghfuran commited on
Commit
fc6bf70
·
1 Parent(s): 47fe08a

ci: initialize github actions workflow for automatic huggingface deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +25 -0
.github/workflows/deploy.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Install Git LFS
19
+ run: git lfs install
20
+
21
+ - name: Push to Hugging Face
22
+ env:
23
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
24
+ run: |
25
+ git push --force https://mghfuran:$HF_TOKEN@huggingface.co/spaces/mghfuran/ZKnowledgeAgent main