berangerthomas commited on
Commit
496a23f
·
1 Parent(s): c61a555

Add GitHub Actions workflow to sync with Hugging Face

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +21 -0
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ sync:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+
16
+ - name: Push to Hugging Face
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: |
20
+ git remote add hf https://berangerthomas:$HF_TOKEN@huggingface.co/spaces/berangerthomas/VOTRE_SPACE
21
+ git push hf main --force