ameerazampixis commited on
Commit
542e98a
1 Parent(s): 06a7653
Files changed (1) hide show
  1. .github/workflows/docker-image.yml +29 -0
.github/workflows/docker-image.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - name: Uninstal lfs
18
+ run: git lfs uninstall
19
+
20
+ - name: Install lfs
21
+ run: git lfs install
22
+ - name: Install lfs git
23
+ run: sudo apt-get install git-lfs
24
+ - name: trak lfs files png, pdf, jpg
25
+ run: git lfs track "*.png" "*.pdf" "*.jpg"
26
+ - name: Push to hub
27
+ env:
28
+ HF_TOKEN: ${{ secrets.HF_TOKEN_GITHUB }}
29
+ run: git push -f https://HF_USERNAME:[email protected]/spaces/ameerazam08/research-index main