Skip to content

Commit

Permalink
ci: deploy to epitech repository
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesGresset committed Oct 8, 2024
1 parent e883c1b commit fe5f68c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: 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

0 comments on commit fe5f68c

Please sign in to comment.