Déploiement en continu sur Azure
This commit is contained in:
parent
8f7cec93e0
commit
1353839867
1 changed files with 11 additions and 3 deletions
14
.github/workflows/main_mediatekformation.yml
vendored
14
.github/workflows/main_mediatekformation.yml
vendored
|
|
@ -3,21 +3,29 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
name: Deploy website on push
|
name: Deploy website on push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
web-deploy:
|
web-deploy:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Get latest code
|
- name: Get latest code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4 # Version à jour
|
||||||
|
|
||||||
- name: Sync files
|
- name: Sync files
|
||||||
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
uses: SamKirkland/FTP-Deploy-Action@4.3.0
|
||||||
with:
|
with:
|
||||||
server: waws-prod-par-019.ftp.azurewebsites.windows.net
|
server: waws-prod-par-019.ftp.azurewebsites.windows.net
|
||||||
server-dir: /site/wwwroot/
|
server-dir: /site/wwwroot/
|
||||||
username: MediatekFormation\$MediatekFormation
|
# Utilisation de guillemets pour éviter les erreurs avec le caractère '$'
|
||||||
password: WyQq4m7L6gnW61BXk80sAry9hxw5KWT8pe82BZboYvSv4hxaXX4QAB1rWsH4
|
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