Add ansible deployment (#18) #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |