Selcan Yukcu commited on
Commit
c772733
·
1 Parent(s): d255229

feat: update deployment workflow to sync with Hugging Face Hub

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +11 -12
.github/workflows/deploy.yml CHANGED
@@ -1,20 +1,19 @@
1
- name: Deploy to Hugging Face Space
2
 
3
  on:
4
  push:
5
  branches:
6
- - main
7
 
8
  jobs:
9
- deploy:
10
  runs-on: ubuntu-latest
11
  steps:
12
- - name: Checkout repository
13
- uses: actions/checkout@v3
14
-
15
- - name: Upload to Hugging Face Space
16
- run: |
17
- git config --global user.email "you@example.com"
18
- git config --global user.name "Your Name"
19
- git remote add hf https://huggingface.co/${{ secrets.HF_SPACE_ID }}
20
- git push https://huggingface_hub:${{ secrets.HF_TOKEN }}@huggingface.co/${{ secrets.HF_SPACE_ID }} HEAD:main --force
 
1
+ name: Sync with Hugging Face Hub
2
 
3
  on:
4
  push:
5
  branches:
6
+ - main
7
 
8
  jobs:
9
+ build:
10
  runs-on: ubuntu-latest
11
  steps:
12
+ - name: Sync with Hugging Face
13
+ uses: nateraw/huggingface-sync-action@v0.0.4
14
+ with:
15
+ github_repo_id: lokumai/defect_solver_mcp_server
16
+ huggingface_repo_id: dnext/ds-mcp-server
17
+ repo_type: space
18
+ space_sdk: gradio
19
+ hf_token: ${{ secrets.HF_TOKEN }}