From 219e64c0f71576e5e5f983c6406162b62fa638ca Mon Sep 17 00:00:00 2001 From: mahan Date: Mon, 29 Dec 2025 09:35:33 +0330 Subject: [PATCH 1/5] add menu --- ServiceHost/Areas/Client/Pages/Shared/_Menu.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServiceHost/Areas/Client/Pages/Shared/_Menu.cshtml b/ServiceHost/Areas/Client/Pages/Shared/_Menu.cshtml index b1e830a2..d5d99f6c 100644 --- a/ServiceHost/Areas/Client/Pages/Shared/_Menu.cshtml +++ b/ServiceHost/Areas/Client/Pages/Shared/_Menu.cshtml @@ -93,7 +93,7 @@ From c09321d89dd11d07cb7a0347ee1df1eb728ce647 Mon Sep 17 00:00:00 2001 From: Mahan Chamani <109232147+mahanch@users.noreply.github.com> Date: Mon, 29 Dec 2025 09:50:40 +0330 Subject: [PATCH 2/5] Update dotnet-developPublish.yml --- .github/workflows/dotnet-developPublish.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet-developPublish.yml b/.github/workflows/dotnet-developPublish.yml index 934a413f..07ffb835 100644 --- a/.github/workflows/dotnet-developPublish.yml +++ b/.github/workflows/dotnet-developPublish.yml @@ -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 }} From 5c1547dced8ecdafc34166ec91a86f088ec1e384 Mon Sep 17 00:00:00 2001 From: Mahan Chamani <109232147+mahanch@users.noreply.github.com> Date: Mon, 29 Dec 2025 09:51:06 +0330 Subject: [PATCH 3/5] Update dotnet-developPublish.yml --- .github/workflows/dotnet-developPublish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-developPublish.yml b/.github/workflows/dotnet-developPublish.yml index 07ffb835..91db0afc 100644 --- a/.github/workflows/dotnet-developPublish.yml +++ b/.github/workflows/dotnet-developPublish.yml @@ -3,7 +3,7 @@ name: Deploy Development ASP.NET Core App to IIS on: push: branches: - - Master + - master jobs: From 8496b520131c18556292a87cae59a0dbe97e3e5b Mon Sep 17 00:00:00 2001 From: Mahan Chamani <109232147+mahanch@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:17:59 +0330 Subject: [PATCH 4/5] Change deployment target from master to Main Updated deployment configuration with new server details. --- .github/workflows/dotnet-developPublish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-developPublish.yml b/.github/workflows/dotnet-developPublish.yml index 91db0afc..0b285b3d 100644 --- a/.github/workflows/dotnet-developPublish.yml +++ b/.github/workflows/dotnet-developPublish.yml @@ -3,7 +3,7 @@ name: Deploy Development ASP.NET Core App to IIS on: push: branches: - - master + - Main jobs: @@ -35,7 +35,7 @@ jobs: & "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" ` -verb:sync ` -source:contentPath="$publishFolder" ` - -dest:contentPath="dadmehrg",computerName="https://185.208.175.186:8172/msdeploy.axd?site=gozareshgir",userName="deployUser",password="As@D3eP%L%oYU$ser",authType="Basic" ` + -dest:contentPath="dadmehrg",computerName="https://1111:8172/msdeploy.axd?site=gozareshgir",userName="111",password="111",authType="Basic" ` -allowUntrusted ` -enableRule:AppOffline From bd1c1fa8148284b0ec5ccf4fea833199ca3dba3a Mon Sep 17 00:00:00 2001 From: Mahan Chamani <109232147+mahanch@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:22:10 +0330 Subject: [PATCH 5/5] Refactor deployment script to use env variables Updated deployment configuration to use environment variables for server host and credentials. --- .github/workflows/dotnet-developPublish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet-developPublish.yml b/.github/workflows/dotnet-developPublish.yml index 0b285b3d..4053dc8c 100644 --- a/.github/workflows/dotnet-developPublish.yml +++ b/.github/workflows/dotnet-developPublish.yml @@ -35,8 +35,11 @@ jobs: & "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" ` -verb:sync ` -source:contentPath="$publishFolder" ` - -dest:contentPath="dadmehrg",computerName="https://1111:8172/msdeploy.axd?site=gozareshgir",userName="111",password="111",authType="Basic" ` + -dest:contentPath="dadmehrg",computerName="https://$env:SERVER_HOST:8172/msdeploy.axd?site=gozareshgir",userName="$env:DEPLOY_USER",password="$env:DEPLOY_PASSWORD",authType="Basic" ` -allowUntrusted ` -enableRule:AppOffline - - + + env: + SERVER_HOST: 171.22.24.15 + DEPLOY_USER: ${{ secrets.DEPLOY_USER }} + DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}