name: Déploiement Hugo Staging on: push: branches: - master jobs: deploy-staging: runs-on: self-hosted steps: - name: Déployer sur staging shell: bash run: | # Déclare /home/deploy/staging comme safe pour Git git config --global --add safe.directory /home/deploy/staging # Dirige-toi dans le clone staging cd /home/deploy/staging # Récupère la dernière version de master git pull origin master # Relance le service Hugo-staging docker compose -f /home/deploy/infra/docker-compose.staging.yml up -d echo "Staging mis à jour à $(date)"