Spaces:
Paused
Paused
| # Configuración de Usuario | |
| git config --global user.email "ksj6ftj8f8@gmail.com" | |
| git config --global user.name "Elliotasdasdasfasas" | |
| git config --global credential.helper store | |
| # Inicializar Git si no existe | |
| if [ ! -d ".git" ]; then | |
| git init | |
| git branch -M main | |
| fi | |
| # Definir Token y Usuario | |
| HF_TOKEN="${HF_TOKEN}" | |
| HF_USER="ROBOT-GANSTA" | |
| SPACE_NAME="robot-gansta-redneural" | |
| # Configurar Remote con Token explícito (desde variable de entorno) | |
| REMOTE_URL="https://$HF_USER:$HF_TOKEN@huggingface.co/spaces/$HF_USER/$SPACE_NAME" | |
| echo "🔗 Conectando a: https://huggingface.co/spaces/$HF_USER/$SPACE_NAME" | |
| # Eliminar remote anterior si existe | |
| git remote remove space 2>/dev/null | |
| # Añadir remote y hacer pull/push | |
| git remote add space "$REMOTE_URL" | |
| # Añadir archivos | |
| git add . | |
| git commit -m "Deploy RedNeural Docker Environment with Fixes" | |
| # Forzar push inicial | |
| git push --force space main | |
| echo "✅ Despliegue completado." | |