RayMelius Claude Sonnet 4.6 commited on
Commit
3e74d36
·
1 Parent(s): 8f58a71

Add GitHub Actions workflow to auto-deploy to HuggingFace on push to main

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy-hf.yml +22 -0
.github/workflows/deploy-hf.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Deploy to HuggingFace Spaces
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+
7
+ jobs:
8
+ sync:
9
+ name: Push to HuggingFace
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0 # full history so HF receives all commits
16
+
17
+ - name: Push to HuggingFace Space
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: |
21
+ git remote add huggingface https://RayMelius:${HF_TOKEN}@huggingface.co/spaces/RayMelius/StockEx.git
22
+ git push huggingface main --force