Changement du déploiement continu
This commit is contained in:
parent
1353839867
commit
c7ac8f9cd4
1 changed files with 11 additions and 21 deletions
32
.github/workflows/main_mediatekformation.yml
vendored
32
.github/workflows/main_mediatekformation.yml
vendored
|
|
@ -1,31 +1,21 @@
|
||||||
|
name: Deploy website on push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
name: Deploy website on push
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
web-deploy:
|
build-and-deploy:
|
||||||
name: Deploy
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Get latest code
|
- name: Checkout GitHub Action
|
||||||
uses: actions/checkout@v4 # Version à jour
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Sync files
|
- name: Deploy to Azure Web App
|
||||||
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
uses: azure/webapps-deploy@v3
|
||||||
with:
|
with:
|
||||||
server: waws-prod-par-019.ftp.azurewebsites.windows.net
|
app-name: 'MediatekFormation'
|
||||||
server-dir: /site/wwwroot/
|
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
|
||||||
# Utilisation de guillemets pour éviter les erreurs avec le caractère '$'
|
package: .
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue