Jae-Won Chung commited on
Commit
259d16e
1 Parent(s): 1a73bd7

Add Action to push to Spaces

Browse files
Files changed (1) hide show
  1. .github/workflows/push_spaces.yaml +21 -0
.github/workflows/push_spaces.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Push to Hugging Face Space
2
+ on:
3
+ push:
4
+ branches:
5
+ - web
6
+
7
+ jobs:
8
+ push:
9
+ runs-on: ubuntu-latest
10
+ if: github.event.repository.fork == false
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ ref: web
18
+ - name: Push to Space
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: git push https://jaywonchung:[email protected]/spaces/symbioticlab/ml-energy-leaderboard web:main