Franklin Willemen commited on
Commit
639f77b
1 Parent(s): 6fb9753

Create main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +20 -0
.github/workflows/main.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ push:
2
+ branches: [main]
3
+
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ sync-to-hub:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ with:
12
+ fetch-depth: 0
13
+ - name: Add remote
14
+ env:
15
+ HF: ${{ secrets.HF }}
16
+ run: git remote add space https://franklinwillemen:$HF@huggingface.co/spaces/FranklinWillemen/TARS
17
+ - name: Push to hub
18
+ env:
19
+ HF: ${{ secrets.HF }}
20
+ run: git push --force https://franklinwillemen:$HF@huggingface.co/spaces/FranklinWillemen/TARS main