LalitMahale commited on
Commit
16ecece
·
1 Parent(s): a2d4cca

git action file added

Browse files
Files changed (2) hide show
  1. .github/workflows/main.yml +26 -0
  2. requirements.txt +1 -2
.github/workflows/main.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # 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 hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ HF_NAME: ${{ secrets.HF_NAME }}
22
+ PROJECT_NAME: ${{ secrets.PROJECT_NAME }}
23
+ run: |
24
+ git config --global credential.helper store
25
+ git remote set-url origin https://{{HF_NAME}}:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/{{HF_NAME}}/{{PROJECT_NAME}}
26
+ git push --force origin main
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  sentence-transformers
2
  streamlit
3
  torch
4
- farm-haystack
5
-
 
1
  sentence-transformers
2
  streamlit
3
  torch
4
+ farm-haystack