Romain Graux commited on
Commit
c79ad30
·
1 Parent(s): 9c88354

Add GitHub action to push on HF sspace

Browse files
.github/workflows/hf_max_size.yml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check file size
2
+ on:
3
+ pull_request:
4
+ branches: [master]
5
+
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Check large files
12
+ uses: ActionsDesk/[email protected]
13
+ with:
14
+ filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
.github/workflows/hf_space.yml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [master]
5
+
6
+ jobs:
7
+ sync-to-hub:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+ with:
12
+ fetch-depth: 0
13
+ lfs: true
14
+ - name: Push to hub
15
+ env:
16
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
+ run: git push https://HF_USERNAME:[email protected]/spaces/nccr-catalysis/volcano-plot master