hssling commited on
Commit
9ca75a2
·
1 Parent(s): 30f0729

Add GitHub Actions workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_to_hub.yml +23 -0
.github/workflows/sync_to_hub.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+
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 Hugging Face Hub
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ git remote add space https://hssling:$HF_TOKEN@huggingface.co/spaces/hssling/cardioai-api
23
+ git push --force space master:main