super-harness / clean_deploy.ps1
Cyber Catalyst Team
Deploy to HF Spaces with LFS
4782147
Raw
History Blame Contribute Delete
405 Bytes
$ErrorActionPreference = 'SilentlyContinue'
Remove-Item create_space.js
Remove-Item deploy.ps1
Remove-Item lfs_deploy.ps1
$ErrorActionPreference = 'Stop'
git branch -D hf-deploy
git checkout --orphan hf-deploy
git lfs install
git lfs track "*.png" "*.gif" "*.jpg" "*.jpeg"
git add .gitattributes
git add .
git commit -m "Deploy to HF Spaces with LFS"
git push hf hf-deploy:main --force
git checkout main