From 62349c0a54e2e79e4654a8bcc0e33bf90379ac76 Mon Sep 17 00:00:00 2001 From: Mahan Chamani <109232147+mahanch@users.noreply.github.com> Date: Sat, 22 Nov 2025 14:01:16 +0330 Subject: [PATCH] Refactor Web Deploy command for better readability --- .github/workflows/dotnet-developPublish.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet-developPublish.yml b/.github/workflows/dotnet-developPublish.yml index 957f30c8..25835387 100644 --- a/.github/workflows/dotnet-developPublish.yml +++ b/.github/workflows/dotnet-developPublish.yml @@ -32,6 +32,11 @@ jobs: - name: Deploy to IIS via Web Deploy shell: powershell run: | - $publishFolder = Resolve-Path ./publish & "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="R2rNpdnetP3j>q5b18",authType="Basic" -allowUntrusted -enableRule:AppOffline + $publishFolder = Resolve-Path ./publish + & "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" ` + -verb:sync ` + -source:contentPath="$publishFolder" ` + -dest:contentPath="C:\inetpub\wwwroot\dadmehrg",computerName="https://171.22.24.15:8172/msdeploy.axd?site=dadmehrg",userName="Administrator",password="R2rNpdnetP3j>q5b18",authType="Basic" ` + -dest:contentPath="dadmehrg",computerName="https://171.22.24.15:8172/msdeploy.axd?site=dadmehrg",userName="Administrator",password="R2rNpdnetP3j>q5b18",authType="Basic" ` + -allowUntrusted ` + -enableRule:AppOffline