Vasilii Tokarev commited on
Commit
2ca3c95
·
1 Parent(s): 4e7a034

Add workflow to deploy to Hugging Face

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +28 -0
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+
16
+ - name: Sanity-check token
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: |
20
+ if [ -z "$HF_TOKEN" ]; then
21
+ echo "HF_TOKEN is empty ‼️"; exit 1;
22
+ fi
23
+ echo "Token length: ${#HF_TOKEN}"
24
+
25
+ - name: Push to hub
26
+ env:
27
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
28
+ run: git push https://serverdaun:$HF_TOKEN@huggingface.co/spaces/serverdaun/deep-research.git main --force