Rochane commited on
Commit
cc33196
·
1 Parent(s): 2e63e98

Add GitHub Action to sync with Hugging Face Spaces

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 Spaces
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+ lfs: true
16
+
17
+ - name: Push to Hugging Face
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: |
21
+ git push --force https://Rochane:$HF_TOKEN@huggingface.co/spaces/Rochane/aim main