Spaces:
Sleeping
Sleeping
Commit History
-
Add deploy-to-Space workflow — manual trigger, no auto-deploy
Piers Lyon +1: Claude Opus 4.7 (1M context)Diagnosis: the live HF Space (mipwr-admin/curium-intel) hasn't rebuilt since 2026-05-05. None of the Phase 1-4 work, feedback loop, or hardening landed on the Space because there was no GitHub→Space sync configured. The Monday cron runs in GitHub Actions so emails are unaffected, but the dashboard the team visits has been frozen for almost a week. This workflow uses huggingface_hub.upload_folder() to push the repo to the Space when manually triggered. Manual-only on purpose — a "git push to main" never silently deploys to production. Flip to `on: push: branches: [main]` once we trust the pipeline. Safety guards in the workflow: - Refuses to deploy if a .env file is in the checkout. - Greps tracked files for committed API key literals and aborts on a hit. - Excludes: leads.db, sales_signals.db, venv/, __pycache__/, logs/, data/, .env*, .claude/, memory/, *.xlsx, *.csv, .git/, .github/, .vscode/, .idea/, .DS_Store, deploy docs. - Concurrency group ensures only one deploy runs at …482374c