copilot-swe-agent[bot] SpinTillYouWin-WheelPulsePro commited on
Commit
37d9bbf
·
unverified ·
1 Parent(s): 969dd7f

Add GitHub Actions workflow to sync to HuggingFace Space

Browse files

Agent-Logs-Url: https://github.com/SpinTillYouWin-WheelPulsePro/WheelPulsePro/sessions/64c2a04b-c67a-47e9-b1ef-319f5e99ddfd

Co-authored-by: SpinTillYouWin-WheelPulsePro <213299693+SpinTillYouWin-WheelPulsePro@users.noreply.github.com>

.github/workflows/sync-to-huggingface.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to HuggingFace Space
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch: # Allow manual trigger
8
+
9
+ jobs:
10
+ sync-to-huggingface:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+
19
+ - name: Push to HuggingFace Space
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ git remote add hf https://Spintillyouwinwheelpulsepro:${HF_TOKEN}@huggingface.co/spaces/Spintillyouwinwheelpulsepro/WheelPulsePro
24
+ git push hf main --force