ci: deploy to epitech repo #5
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: Deploy | |
on: | |
workflow_call: | |
push: | |
branches: | |
- main | |
jobs: | |
deployEpitech: | |
runs-on: ubuntu-latest | |
name: Deploy to EPITECH Repository | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.DEPLOY_EPITECH_KEY }} | |
- name: Clone EPITECH repository | |
run: | | |
git clone [email protected]:EpitechPromo2026/G-EIP-700-PAR-7-1-eip-jules.gresset.git | |
cd G-EIP-700-PAR-7-1-eip-jules.gresset | |
mkdir -p -v backend | |
rsync -av --delete ../ backend/ --exclude .git | |
- name: Configure Git | |
run: | | |
git config user.name "Jules Gresset" | |
git config user.email "[email protected]" | |
- name: Push to EPITECH repository | |
run: | | |
cd G-EIP-700-PAR-7-1-eip-jules.gresset | |
git add . | |
git commit -m "Update from backend" | |
git push origin main |