Update dotnet-developPublish.yml

This commit is contained in:
Mahan Chamani
2025-12-29 09:50:40 +03:30
committed by GitHub
parent 219e64c0f7
commit c09321d89d

View File

@@ -3,10 +3,8 @@ name: Deploy Development ASP.NET Core App to IIS
on:
push:
branches:
- Main
- Master
env:
DOTNET_ENVIRONMENT: Development
jobs:
build-and-deploy:
@@ -37,12 +35,8 @@ jobs:
& "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" `
-verb:sync `
-source:contentPath="$publishFolder" `
-dest:contentPath="dadmehrg",computerName="https://171.22.24.15:8172/msdeploy.axd?site=dadmehrg",userName="Administrator",password="R",authType="Basic" `
-dest:contentPath="dadmehrg",computerName="https://185.208.175.186:8172/msdeploy.axd?site=gozareshgir",userName="deployUser",password="As@D3eP%L%oYU$ser",authType="Basic" `
-allowUntrusted `
-enableRule:AppOffline
env:
SERVER_HOST: your-server-ip-or-domain
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}