Vikram Vasudevan commited on
Commit
c14429b
·
1 Parent(s): 3d1b0b5

sync to HF

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_to_hf.yml +23 -0
.github/workflows/sync_to_hf.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ # Allows you 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
+
18
+ - name: Push to hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ # You can also use environment variables if you want to make it generic
23
+ git push --force https://vikramvasudevan:$HF_TOKEN@huggingface.co/spaces/vikramvasudevan/god main