File size: 1,991 Bytes
5fd9547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash

# 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 "════════════════════════════════════════════════════"