From ffb3a770d4ad963e481767a1effbfbad8cef44c4 Mon Sep 17 00:00:00 2001 From: Darenv-cloud Date: Thu, 22 May 2025 17:04:59 +0100 Subject: [PATCH 1/5] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_dvizzle.yml | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/main_dvizzle.yml diff --git a/.github/workflows/main_dvizzle.yml b/.github/workflows/main_dvizzle.yml new file mode 100644 index 000000000..ddf7a4cf3 --- /dev/null +++ b/.github/workflows/main_dvizzle.yml @@ -0,0 +1,58 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy ASP.Net Core app to Azure Web App - dvizzle + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + permissions: + contents: read #This is required for actions/checkout + + steps: + - uses: actions/checkout@v4 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + + - name: Build with dotnet + run: dotnet build --configuration Release + + - name: dotnet publish + run: dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/myapp" + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + with: + name: .net-app + path: ${{env.DOTNET_ROOT}}/myapp + + deploy: + runs-on: windows-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: .net-app + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v3 + with: + app-name: 'dvizzle' + slot-name: 'Production' + package: . + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_2A3F2CE2ABB94ED6BD988DF2BFE73169 }} \ No newline at end of file From d282a8eaca9945faac4122e81fe7cd28510ba81d Mon Sep 17 00:00:00 2001 From: Darenv-cloud Date: Fri, 23 May 2025 08:19:41 +0000 Subject: [PATCH 2/5] mainpage commit --- Pages/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index 5aac95925..eb47142e2 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -5,7 +5,7 @@ }
-

Hello World from .NET 8

+

Hello World from such .NET 8

Learn about building Web apps with ASP.NET Core.


Host operating system: @Model.OSVersion
From 63ef66a31182b54f1d7383af81cecc0fedea9a7a Mon Sep 17 00:00:00 2001 From: Darenv-cloud Date: Fri, 23 May 2025 11:14:13 +0000 Subject: [PATCH 3/5] update main page --- Pages/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index eb47142e2..1ace82f5d 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -5,7 +5,7 @@ }
-

Hello World from such .NET 8

+

Hello World from such .NET 8. It is a bit fickle

Learn about building Web apps with ASP.NET Core.


Host operating system: @Model.OSVersion
From db3eece39a733542e15e5781b0b59e233985f690 Mon Sep 17 00:00:00 2001 From: Darenv-cloud Date: Fri, 23 May 2025 11:14:40 +0000 Subject: [PATCH 4/5] adding to helloworld --- dotnetcore-docs-hello-world.sln | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dotnetcore-docs-hello-world.sln diff --git a/dotnetcore-docs-hello-world.sln b/dotnetcore-docs-hello-world.sln new file mode 100644 index 000000000..6e802e78e --- /dev/null +++ b/dotnetcore-docs-hello-world.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetcoresample", "dotnetcoresample.csproj", "{180973BF-4C71-7ED8-4C86-DDE572554104}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {180973BF-4C71-7ED8-4C86-DDE572554104}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {180973BF-4C71-7ED8-4C86-DDE572554104}.Debug|Any CPU.Build.0 = Debug|Any CPU + {180973BF-4C71-7ED8-4C86-DDE572554104}.Release|Any CPU.ActiveCfg = Release|Any CPU + {180973BF-4C71-7ED8-4C86-DDE572554104}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6863E8FD-1B05-4C50-9391-4AC4A5A69B37} + EndGlobalSection +EndGlobal From 904f49a2c308287bcae2332b72d71fe5e00e0f2f Mon Sep 17 00:00:00 2001 From: Darenv-cloud Date: Fri, 23 May 2025 11:18:56 +0000 Subject: [PATCH 5/5] this is a test commit --- Pages/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index 1ace82f5d..ed7d2e051 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -5,7 +5,7 @@ }
-

Hello World from such .NET 8. It is a bit fickle

+

Hello World from such .NET 8. It is a bit fickle - This is a test

Learn about building Web apps with ASP.NET Core.


Host operating system: @Model.OSVersion