From 2f66dd90484a887efe306057a5bf3a807e0f9610 Mon Sep 17 00:00:00 2001
From: RanganathBadigi <146017007+RanganathBadigi@users.noreply.github.com>
Date: Tue, 15 Apr 2025 10:55:05 +0000
Subject: [PATCH 1/4] update heading
---
aspnet-get-started/Views/Home/Index.cshtml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/aspnet-get-started/Views/Home/Index.cshtml b/aspnet-get-started/Views/Home/Index.cshtml
index 32e1dd94..ce4b5215 100644
--- a/aspnet-get-started/Views/Home/Index.cshtml
+++ b/aspnet-get-started/Views/Home/Index.cshtml
@@ -3,9 +3,8 @@
}
-
ASP.NET
-
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
-
Learn more »
+
.NET 💜 Azure
+
Ranganath Example .NET app to Azure App Service.
From 64ad0d29cb298bcbf01427c3dc897d0912689939 Mon Sep 17 00:00:00 2001
From: RanganathBadigi <146017007+RanganathBadigi@users.noreply.github.com>
Date: Tue, 15 Apr 2025 16:34:16 +0530
Subject: [PATCH 2/4] Add or update the Azure App Service build and deployment
workflow config
---
.github/workflows/main_tierwebapp.yml | 69 +++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
create mode 100644 .github/workflows/main_tierwebapp.yml
diff --git a/.github/workflows/main_tierwebapp.yml b/.github/workflows/main_tierwebapp.yml
new file mode 100644
index 00000000..972da940
--- /dev/null
+++ b/.github/workflows/main_tierwebapp.yml
@@ -0,0 +1,69 @@
+# 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 app to Azure Web App - tierwebapp
+
+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: Setup MSBuild path
+ uses: microsoft/setup-msbuild@v1.0.2
+
+ - name: Setup NuGet
+ uses: NuGet/setup-nuget@v1.0.5
+
+ - name: Restore NuGet packages
+ run: nuget restore
+
+ - name: Publish to folder
+ run: msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\"
+
+ - name: Upload artifact for deployment job
+ uses: actions/upload-artifact@v4
+ with:
+ name: ASP-app
+ path: '/published/**'
+
+ deploy:
+ runs-on: windows-latest
+ needs: build
+ environment:
+ name: 'Production'
+ url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
+ permissions:
+ id-token: write #This is required for requesting the JWT
+ contents: read #This is required for actions/checkout
+
+ steps:
+ - name: Download artifact from build job
+ uses: actions/download-artifact@v4
+ with:
+ name: ASP-app
+
+ - name: Login to Azure
+ uses: azure/login@v2
+ with:
+ client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_D3DC6FF382D244B5A8C333CC7A21ABC0 }}
+ tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D0622B5C247D4AC6A67A950A3BDDECA4 }}
+ subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9718D3FCE66043AD989F2A2AD544B813 }}
+
+ - name: Deploy to Azure Web App
+ id: deploy-to-webapp
+ uses: azure/webapps-deploy@v3
+ with:
+ app-name: 'tierwebapp'
+ slot-name: 'Production'
+ package: .
+
\ No newline at end of file
From c6c28379d291902529d8b67b2bc0a0eed2abe0db Mon Sep 17 00:00:00 2001
From: RanganathBadigi <146017007+RanganathBadigi@users.noreply.github.com>
Date: Fri, 18 Apr 2025 19:44:35 +0530
Subject: [PATCH 3/4] Update Index.cshtml
---
aspnet-get-started/Views/Home/Index.cshtml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aspnet-get-started/Views/Home/Index.cshtml b/aspnet-get-started/Views/Home/Index.cshtml
index ce4b5215..2aac5f99 100644
--- a/aspnet-get-started/Views/Home/Index.cshtml
+++ b/aspnet-get-started/Views/Home/Index.cshtml
@@ -4,7 +4,7 @@
.NET 💜 Azure
-
Ranganath Example .NET app to Azure App Service.
+
Ravishankar Example .NET app to Azure App Service.
@@ -27,4 +27,4 @@
You can easily find a web hosting company that offers the right mix of features and price for your applications.
Learn more »
-
\ No newline at end of file
+
From 010b14591a75ed3bea9fe1073d83f26cc7ec8896 Mon Sep 17 00:00:00 2001
From: RanganathBadigi <146017007+RanganathBadigi@users.noreply.github.com>
Date: Tue, 13 May 2025 19:01:01 +0530
Subject: [PATCH 4/4] Create build-deploy.yml
---
.github/workflows/build-deploy.yml | 67 ++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
create mode 100644 .github/workflows/build-deploy.yml
diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml
new file mode 100644
index 00000000..eedba901
--- /dev/null
+++ b/.github/workflows/build-deploy.yml
@@ -0,0 +1,67 @@
+name: Build and deploy
+
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup .NET SDK
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '8.0.x' # Use appropriate .NET Core version for your app
+
+ - name: Restore dependencies
+ run: dotnet restore
+
+ - name: Build
+ run: dotnet build --no-restore --configuration Release
+
+ - name: Publish
+ run: dotnet publish -c Release -o ./published
+
+ - name: Upload artifact for deployment job
+ uses: actions/upload-artifact@v4
+ with:
+ name: ASP-app
+ path: ./published
+
+ deploy:
+ runs-on: ubuntu-latest
+ needs: build
+ environment:
+ name: 'Production'
+ url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
+ permissions:
+ id-token: write
+ contents: read
+
+ steps:
+ - name: Download artifact from build job
+ uses: actions/download-artifact@v4
+ with:
+ name: ASP-app
+
+ - name: Login to Azure
+ uses: azure/login@v2
+ with:
+ client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_D3DC6FF382D244B5A8C333CC7A21ABC0 }}
+ tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D0622B5C247D4AC6A67A950A3BDDECA4 }}
+ subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9718D3FCE66043AD989F2A2AD544B813 }}
+
+ - name: Deploy to Azure Web App
+ id: deploy-to-webapp
+ uses: azure/webapps-deploy@v3
+ with:
+ app-name: 'cpwebtest001'
+ slot-name: 'Production'
+ package: .