nragrawal commited on
Commit
82fadd0
·
1 Parent(s): 7abce93

Add GitHub Actions workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/sync.yml +17 -0
.github/workflows/sync.yml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ jobs:
7
+ sync-to-hub:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+ - name: Push to hub
12
+ env:
13
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
14
+ run: |
15
+ git config --global user.email "[email protected]"
16
+ git config --global user.name "GitHub Actions"
17
+ git push https://YOUR_USERNAME:[email protected]/spaces/YOUR_USERNAME/PROJECT_NAME main