Martijn van Beers commited on
Commit
6663589
1 Parent(s): 98deba6

Add github actions for huggingface hub

Browse files
.github/workflows/hf_sync.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # 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@v2
14
+ with:
15
+ fetch-depth: 0
16
+ - name: Push to hub
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push https://njitram:$HF_TOKEN@huggingface.co/spaces/amsterdamNLP/attention-rollout main
.github/workflows/sizecheck.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check file size
2
+ on:
3
+ pull_request:
4
+ branches: [main]
5
+
6
+ push:
7
+ branches: [main]
8
+
9
+ # to run this workflow manually from the Actions tab
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ sync-to-hub:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Check large files
17
+ uses: ActionsDesk/lfs-warning@v2.0
18
+ with:
19
+ filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces