Abhijeet Mahapatra commited on
Commit
88717ae
·
2 Parent(s): c101ce7f68fa3b

Merge branch 'main' of github.com:ProjectImpulse/Noisy_boy_frontend

Browse files
Files changed (1) hide show
  1. .github/workflows/hf_sync.yml +23 -0
.github/workflows/hf_sync.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Org Hub
2
+
3
+ on:
4
+ push:
5
+ branches: [main] # Change this to the branch you are hosting from
6
+
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
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 # Set to true if you are hosting large weights or model files
18
+
19
+ - name: Push to Org Hugging Face Space
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ git push --force https://huggingface.co/smolhuman:$HF_TOKEN@huggingface.co/spaces/build-small-hackathon/Noisy_News HEAD:main