legends810 commited on
Commit
4daeb52
·
unverified ·
1 Parent(s): 8f34e2a

Create sync-to-hf.yml

Browse files
Files changed (1) hide show
  1. sync-to-hf.yml +21 -0
sync-to-hf.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Space
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+ - name: Push to HuggingFace Space
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: |
19
+ git config --global user.email "your-email@example.com"
20
+ git config --global user.name "legends810"
21
+ git push https://legends810:$HF_TOKEN@huggingface.co/spaces/legends810/mcp-server main