From c7ac8f9cd46ef373ead7a3d0b49acb9ae2a7f15e Mon Sep 17 00:00:00 2001 From: winkaeter <55712954+winkaeter@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:24:47 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20du=20d=C3=A9ploiement=20continu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main_mediatekformation.yml | 32 +++++++------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main_mediatekformation.yml b/.github/workflows/main_mediatekformation.yml index cee15da..d55ced3 100644 --- a/.github/workflows/main_mediatekformation.yml +++ b/.github/workflows/main_mediatekformation.yml @@ -1,31 +1,21 @@ +name: Deploy website on push + on: push: branches: - main workflow_dispatch: -name: Deploy website on push - jobs: - web-deploy: - name: Deploy + build-and-deploy: runs-on: ubuntu-latest steps: - - name: Get latest code - uses: actions/checkout@v4 # Version à jour - - - name: Sync files - uses: SamKirkland/FTP-Deploy-Action@4.3.0 + - name: Checkout GitHub Action + uses: actions/checkout@v4 + + - name: Deploy to Azure Web App + uses: azure/webapps-deploy@v3 with: - server: waws-prod-par-019.ftp.azurewebsites.windows.net - server-dir: /site/wwwroot/ - # 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 - - + app-name: 'MediatekFormation' + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} + package: .