Spaces:
Configuration error
Configuration error
| # Quick Push to HuggingFace + GitHub | |
| # Usage: ./quick_push.sh "Your commit message" | |
| cd /Users/hetalksinmaths/togmal/Togmal-demo | |
| MESSAGE="${1:-Update demo}" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |
| echo " Quick Push: HuggingFace + GitHub" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |
| echo "" | |
| echo "π Commit message: $MESSAGE" | |
| echo "" | |
| # Add all changes | |
| git add . | |
| # Commit | |
| git commit -m "$MESSAGE" || echo "βΉοΈ Nothing new to commit" | |
| echo "" | |
| echo "π Pushing to both platforms..." | |
| echo "" | |
| # Push to HuggingFace (origin) | |
| echo "1οΈβ£ Pushing to HuggingFace Spaces..." | |
| git push origin main | |
| if [ $? -eq 0 ]; then | |
| echo " β HuggingFace updated!" | |
| echo " π https://huggingface.co/spaces/JustTheStatsHuman/Togmal-demo" | |
| else | |
| echo " β HuggingFace push failed" | |
| fi | |
| echo "" | |
| # Push to GitHub | |
| echo "2οΈβ£ Pushing to GitHub..." | |
| # Check if github remote exists, if not add it | |
| if ! git remote | grep -q "github"; then | |
| echo " βΉοΈ Adding GitHub remote..." | |
| git remote add github https://github.com/HeTalksInMaths/togmal-mcp.git | |
| fi | |
| git push github main | |
| if [ $? -eq 0 ]; then | |
| echo " β GitHub updated!" | |
| echo " π https://github.com/HeTalksInMaths/togmal-mcp" | |
| else | |
| echo " β GitHub push failed" | |
| echo " π‘ You may need to authenticate with PAT" | |
| echo " Get token at: https://github.com/settings/tokens" | |
| fi | |
| echo "" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |
| echo " β¨ Done!" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |