From 13538398679fe2f32ee3645a5376ca092a5c2d3e Mon Sep 17 00:00:00 2001 From: winkaeter <55712954+winkaeter@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:16:26 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9ploiement=20en=20continu=20sur=20Azure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main_mediatekformation.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main_mediatekformation.yml b/.github/workflows/main_mediatekformation.yml index 1b8681c..cee15da 100644 --- a/.github/workflows/main_mediatekformation.yml +++ b/.github/workflows/main_mediatekformation.yml @@ -3,21 +3,29 @@ on: branches: - main workflow_dispatch: + name: Deploy website on push + jobs: web-deploy: name: Deploy runs-on: ubuntu-latest steps: - name: Get latest code - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Version à jour - name: Sync files uses: SamKirkland/FTP-Deploy-Action@4.3.0 with: server: waws-prod-par-019.ftp.azurewebsites.windows.net server-dir: /site/wwwroot/ - username: MediatekFormation\$MediatekFormation - password: WyQq4m7L6gnW61BXk80sAry9hxw5KWT8pe82BZboYvSv4hxaXX4QAB1rWsH4 + # Utilisation de guillemets pour éviter les erreurs avec le caractère '$' + username: 'MediatekFormation\$MediatekFormation' + # Utilisation d'un secret GitHub (indispensable pour la sécurité) + password: ${{ secrets.FTP_PASSWORD }} + # Force l'utilisation du FTPS pour éviter le ECONNRESET + protocol: ftps + # Optionnel : augmente la tolérance aux délais réseau + timeout: 60000