Spaces:
Sleeping
Sleeping
Download scripts/push_hf_production.ps1 from coderuday21/satdetect-dev: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/coderuday21/satdetect-dev/resolve/main/scripts/push_hf_production.ps1
- Command line
-
hf download hf://spaces/coderuday21/satdetect-dev/scripts/push_hf_production.ps1
-
curl -L -o push_hf_production.ps1 https://huggingface.co/spaces/coderuday21/satdetect-dev/resolve/main/scripts/push_hf_production.ps1
571 Bytes
| # Push master (no login) to the live Hugging Face Space (satdetect). | |
| $ErrorActionPreference = "Stop" | |
| Set-Location (Split-Path $PSScriptRoot -Parent) | |
| if (-not (git remote get-url hf 2>$null)) { | |
| Write-Error "Remote 'hf' not found. Add it with:`n git remote add hf https://huggingface.co/spaces/coderuday21/satdetect" | |
| } | |
| # Keep production branch aligned with master | |
| git branch -f production master | |
| Write-Host "Pushing master -> hf/main (satdetect, no login)..." | |
| git push hf master:main | |
| Write-Host "Done. Live app: https://huggingface.co/spaces/coderuday21/satdetect" | |