config deploy

This commit is contained in:
2025-12-08 12:42:51 +01:00
parent f38ce9e9cc
commit f52bddc03c
+3 -19
View File
@@ -1,25 +1,9 @@
name: Deploy to Staging and Production name: Deploy to Pacha Family
on: on:
push: push:
branches: [main, deploiement-staging] branches: [main]
jobs: jobs:
deploy-staging:
if: github.ref == 'refs/heads/deploiement-staging'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to Staging
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER_PERCOLOUCO }}
username: ${{ secrets.FTP_USERNAME_PERCOLOUCO }}
password: ${{ secrets.FTP_PASSWORD_PERCOLOUCO }}
local-dir: ./
server-dir: /www/staging/ # ← Nouveau chemin
deploy-production: deploy-production:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -34,4 +18,4 @@ jobs:
username: ${{ secrets.FTP_USERNAME_PERCOLOUCO }} username: ${{ secrets.FTP_USERNAME_PERCOLOUCO }}
password: ${{ secrets.FTP_PASSWORD_PERCOLOUCO }} password: ${{ secrets.FTP_PASSWORD_PERCOLOUCO }}
local-dir: ./ local-dir: ./
server-dir: /www/mh/ # ← Production reste ici server-dir: /www/pachafamily/ # ← Production reste ici