Vasanth6 commited on
Commit
75550b0
·
1 Parent(s): be4fdde

Add hf deployment helper script

Browse files
Files changed (1) hide show
  1. deploy_to_hf.ps1 +25 -0
deploy_to_hf.ps1 ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Temporary Hugging Face deployment script
2
+ # This script creates a clean commit without the large asset GIFs (which exceed HF's 10MB limit)
3
+
4
+ Write-Host "1. Creating temporary orphan deployment branch..." -ForegroundColor Blue
5
+ git checkout --orphan deploy
6
+
7
+ Write-Host "2. Resetting staging index to empty..." -ForegroundColor Blue
8
+ git reset
9
+
10
+ Write-Host "3. Staging all files (excluding ignored assets/ and .env)..." -ForegroundColor Blue
11
+ git add .
12
+
13
+ Write-Host "4. Creating clean deployment commit..." -ForegroundColor Blue
14
+ git commit -m "Deploy self-contained CPU release"
15
+
16
+ Write-Host "5. Pushing to Hugging Face main branch..." -ForegroundColor Blue
17
+ git push hf deploy:main --force
18
+
19
+ Write-Host "6. Switching back to local main branch..." -ForegroundColor Blue
20
+ git checkout main
21
+
22
+ Write-Host "7. Cleaning up temporary deployment branch..." -ForegroundColor Blue
23
+ git branch -D deploy
24
+
25
+ Write-Host "Deployment push complete!" -ForegroundColor Green