-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.04 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy
on:
workflow_dispatch:
push:
tags:
- "v*"
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 Backoffice
rsync -av --delete ../ Backoffice/ --exclude .git --exclude G-EIP-700-PAR-7-1-eip-jules.gresset/
- name: Configure Git
run: |
git config --global user.name "Jules Gresset"
git config --global 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 Backoffice (Automation)"
git push origin main