Emperor555 Claude commited on
Commit
b6d2976
·
1 Parent(s): 0728164

Add GitHub Actions workflow for HF Spaces deployment

Browse files

Automatically syncs GitHub repo to Hugging Face Spaces
on push to main branch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. .github/workflows/deploy-hf.yml +23 -0
.github/workflows/deploy-hf.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy to Hugging Face Spaces
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@v4
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+
18
+ - name: Push to Hugging Face Spaces
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ git remote add hf https://user:$HF_TOKEN@huggingface.co/spaces/MCP-1st-Birthday/explainor || true
23
+ git push hf main --force