Files
la-voix-du-peuple/scripts/push-gitea.sh
T
billisdead a43e9717a8 Remove all Replit artifacts and references
- Delete artifacts/mockup-sandbox/ (Replit UI preview sandbox, unused)
- Delete artifacts/voix-du-peuple/.replit-artifact/ (Replit metadata)
- Delete .replit and .replitignore (Replit deployment config)
- Delete .agents/ (Replit agent session tracking)
- Fix scripts/push-gitea.sh: remove mentions of "Replit Secrets"
- Regenerate pnpm-lock.yaml (mockup-sandbox removed from workspace)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 15:48:30 +02:00

29 lines
763 B
Bash

#!/usr/bin/env bash
# push-gitea.sh — Pousse la branche main vers Gitea
# Usage : bash scripts/push-gitea.sh
#
# Prérequis : variable d'environnement GITEA_TOKEN définie
# (export GITEA_TOKEN=votre_token)
set -e
if [ -z "$GITEA_TOKEN" ]; then
echo "Erreur : la variable GITEA_TOKEN n'est pas définie."
echo "Définissez-la avec : export GITEA_TOKEN=votre_token"
exit 1
fi
GITEA_USER="billisdead"
GITEA_HOST="homegit.gyozamancave.fr"
REPO="la-voix-du-peuple"
B64=$(printf '%s' "${GITEA_USER}:${GITEA_TOKEN}" | base64 -w0)
echo "Envoi de la branche main vers https://${GITEA_HOST}/${GITEA_USER}/${REPO}.git ..."
GIT_TERMINAL_PROMPT=0 git \
-c "http.extraHeader=Authorization: Basic ${B64}" \
push origin main
echo "Synchronisation terminée."