forked from Bitcoindefi/Open-Stellar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush-to-github.sh
More file actions
60 lines (49 loc) · 1.53 KB
/
Copy pathpush-to-github.sh
File metadata and controls
60 lines (49 loc) · 1.53 KB
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
#!/bin/bash
# Script para subir Open-Stellar a GitHub
# Ejecuta esto en tu máquina local, no en Codespaces
set -e
echo "🌟 Subiendo Open-Stellar a GitHub..."
echo ""
# Verificar que estamos en el directorio correcto
if [ ! -f "start-moltbot.sh" ]; then
echo "❌ Error: Debes ejecutar este script desde el directorio moltworker"
exit 1
fi
# Reemplazar README
if [ -f "README_OPEN_STELLAR.md" ]; then
echo "📝 Actualizando README..."
cp README.md README_ORIGINAL.md.bak
cp README_OPEN_STELLAR.md README.md
git add README.md
fi
# Eliminar archivos temporales
echo "🧹 Limpiando archivos temporales..."
rm -f README_OPEN_STELLAR.md CREATE_OPEN_STELLAR.md setup-open-stellar.sh
# Verificar remote
if git remote | grep -q "^stellar$"; then
echo "✓ Remote 'stellar' ya existe"
else
echo "➕ Agregando remote 'stellar'..."
git remote add stellar https://github.com/leocagli/Open-Stellar.git
fi
# Commit de cambios si hay
if [ -n "$(git status --porcelain)" ]; then
echo "💾 Haciendo commit de cambios..."
git add .
git commit -m "feat: Initial Open-Stellar setup
- Groq API integration with Llama 3.3 70B
- Token-based authentication
- WebSocket proxy support
- Admin UI with React
- R2 storage support
- Debug routes for development" || echo "No hay cambios para commitear"
fi
# Push a GitHub
echo "🚀 Subiendo a GitHub..."
git push -u stellar main --force
echo ""
echo "✅ ¡Completado!"
echo ""
echo "Tu repositorio está disponible en:"
echo "https://github.com/leocagli/Open-Stellar"
echo ""