Wil2200 Claude Opus 4.6 commited on
Commit
ebd5663
·
1 Parent(s): c62aef1

Add GitHub Actions workflow to auto-sync to HF Spaces

Browse files

Pushes to main automatically deploy to huggingface.co/spaces/Wil2200/prefero
using the HF_TOKEN repo secret.

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

Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +20 -0
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Spaces
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ sync:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+
16
+ - name: Push to Hugging Face
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: |
20
+ git push https://Wil2200:$HF_TOKEN@huggingface.co/spaces/Wil2200/prefero main --force