hssling commited on
Commit
bed6b9e
·
1 Parent(s): ccb8f07

Auto sync to huggingface space action

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_to_hub.yml +24 -0
.github/workflows/sync_to_hub.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+
7
+ # Allows you to run this workflow manually from the Actions tab
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ sync-to-hub:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+
19
+ - name: Push to Hugging Face Hub
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ # Make sure to replace your_username/diagnostic-copilot-api with your actual Hugging Face Space ID
24
+ git push https://hssling:$HF_TOKEN@huggingface.co/spaces/hssling/diagnostic-copilot-api main