Diego Carpintero commited on
Commit
880572b
1 Parent(s): eafab2c

add gh action (HF space)

Browse files
Files changed (1) hide show
  1. .github/workflows/sync.yml +18 -0
.github/workflows/sync.yml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - name: Push to hub
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: git push https://dcarpintero:$HF_TOKEN@huggingface.co/spaces/dcarpintero/minerva main