Skip to content

Add ansible deployment (#18) #24

Add ansible deployment (#18)

Add ansible deployment (#18) #24

name: Push to Staging
on:
push:
branches:
- dev
jobs:
push-to-staging:
runs-on: ubuntu-latest
steps:
# Vérifier le code
- name: Checkout Code
uses: actions/checkout@v4
# Configurer Git pour push sur une autre branche
- name: Set up Git for Push
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Pousser les changements de dev vers staging
- name: Push to Staging Branch
run: |
git fetch origin
git checkout dev
git branch -f staging
git push origin staging --force