VelogaWhite commited on
Commit
dc37a7c
·
1 Parent(s): 3ac22ae

Change sync.yml

Browse files
.github/workflows/sync_to_hub.yml CHANGED
@@ -1,7 +1,7 @@
1
- name: Sync to Hugging Face hub
2
  on:
3
  push:
4
- pull_request:
5
  workflow_dispatch:
6
 
7
  jobs:
@@ -15,4 +15,6 @@ jobs:
15
  - name: Push to hub
16
  env:
17
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
- run: git push --force https://oauth2:$HF_TOKEN@huggingface.co/spaces/SDP2-2025-Group1/django-tdd-app HEAD:main
 
 
 
1
+ name: Sync Calculator to HF
2
  on:
3
  push:
4
+ branches: [ "calculator-app" ] # <--- ONLY runs on calculator branch
5
  workflow_dispatch:
6
 
7
  jobs:
 
15
  - name: Push to hub
16
  env:
17
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ # Pushes to the NEW Calculator space (change the name below!)
19
+ # Note: We push to 'main' on HF because Spaces usually run from their own main branch
20
+ run: git push --force https://oauth2:$HF_TOKEN@huggingface.co/spaces/SDP2-2025-Group1/calculator-tdd HEAD:main
src/static/.gitkeep ADDED
File without changes