From b447abd203b40ad0430d5a1ea918f9cf019ff406 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Mon, 21 Jul 2025 07:25:56 +0000
Subject: [PATCH 10/32] Update main.yml
---
.github/workflows/main.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index ab4e61e34..235508aa7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,7 +1,7 @@
on: [push]
env:
- AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
+ AZURE_WEBAPP_NAME: githubtest2 # Set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
From 91b4d62df1447015b00f5fbd0a494afe7b36183f Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Mon, 21 Jul 2025 07:31:32 +0000
Subject: [PATCH 11/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index a55679e2d..c11237406 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
666Hello World from .NET 7 test123-0721
+
Hello World from .NET 7 888-0721
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From 3326d721750b36454126bb9809982ef7bea86668 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Mon, 21 Jul 2025 10:12:59 +0000
Subject: [PATCH 12/32] Create maincredentials.yml
---
.github/workflows/maincredentials.yml | 43 +++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 .github/workflows/maincredentials.yml
diff --git a/.github/workflows/maincredentials.yml b/.github/workflows/maincredentials.yml
new file mode 100644
index 000000000..9050d7ae2
--- /dev/null
+++ b/.github/workflows/maincredentials.yml
@@ -0,0 +1,43 @@
+name: .NET Core CREDENTIALS
+
+on: [push]
+
+env:
+ AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
+ AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
+ DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
+
+jobs:
+ build:
+ runs-on: windows-latest
+
+ steps:
+ # Check out the repo
+ - uses: actions/checkout@master
+ - uses: azure/login@v2
+ with:
+ creds: ${{ secrets.AZURE_CREDENTIALS }}
+
+ # Setup .NET Core SDK
+ - name: Setup .NET Core
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
+ # Run dotnet build and publish
+ - name: dotnet build and publish
+ run: |
+ dotnet restore
+ dotnet build --configuration Release
+ dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
+
+ # Deploy to Azure Web apps
+ - name: 'Run Azure webapp deploy action using Azure Credentials'
+ uses: azure/webapps-deploy@v3
+ with:
+ app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
+ package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
+
+ - name: logout
+ run: |
+ az logout
From 88611cd080e37cf2b196961e73008986692cf526 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Tue, 22 Jul 2025 01:37:56 +0000
Subject: [PATCH 13/32] Update maincredentials.yml
---
.github/workflows/maincredentials.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/maincredentials.yml b/.github/workflows/maincredentials.yml
index 9050d7ae2..90b34ca7e 100644
--- a/.github/workflows/maincredentials.yml
+++ b/.github/workflows/maincredentials.yml
@@ -5,7 +5,7 @@ on: [push]
env:
AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
- DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
+ DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
jobs:
build:
From 3e679d5431ef163bfa8574f884cf0289205cbbac Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Thu, 14 Aug 2025 08:29:18 +0000
Subject: [PATCH 14/32] Create OpenIDConnect.yml
---
.github/workflows/OpenIDConnect.yml | 50 +++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 .github/workflows/OpenIDConnect.yml
diff --git a/.github/workflows/OpenIDConnect.yml b/.github/workflows/OpenIDConnect.yml
new file mode 100644
index 000000000..a1d5b8f72
--- /dev/null
+++ b/.github/workflows/OpenIDConnect.yml
@@ -0,0 +1,50 @@
+name: .NET Core
+
+on: [push]
+
+permissions:
+ id-token: write
+ contents: read
+
+env:
+ AZURE_WEBAPP_NAME: githubtest2 # Set this to your application's name
+ AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
+ DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
+
+jobs:
+ build:
+ runs-on: windows-latest
+
+ steps:
+ # Check out the repo
+ - uses: actions/checkout@main
+ - uses: azure/login@v2
+ with:
+ client-id: ${{ secrets.AZURE_CLIENT_ID }}
+ tenant-id: ${{ secrets.AZURE_TENANT_ID }}
+ subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
+
+
+ # Setup .NET Core SDK
+ - name: Setup .NET Core
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
+ # Run dotnet build and publish
+ - name: dotnet build and publish
+ run: |
+ dotnet restore
+ dotnet build --configuration Release
+ dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
+
+ # Deploy to Azure Web apps
+ - name: 'Run Azure webapp deploy action using publish profile credentials'
+ uses: azure/webapps-deploy@v3
+ with:
+ app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
+ package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
+
+ - name: logout
+ run: |
+ az logout
From 31abee0a293881a55ae40d534e8d539894b2cda4 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Thu, 14 Aug 2025 08:46:45 +0000
Subject: [PATCH 15/32] Update OpenIDConnect.yml
---
.github/workflows/OpenIDConnect.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/OpenIDConnect.yml b/.github/workflows/OpenIDConnect.yml
index a1d5b8f72..40edf19c2 100644
--- a/.github/workflows/OpenIDConnect.yml
+++ b/.github/workflows/OpenIDConnect.yml
@@ -23,6 +23,7 @@ jobs:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
+ environment: AzureChinaCloud
# Setup .NET Core SDK
From 864b62fb8a13db1357d9201632ce5e220885ea45 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Thu, 14 Aug 2025 08:53:21 +0000
Subject: [PATCH 16/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index c11237406..2cbba42d8 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 888-0721
+
Hello World from .NET 7 888-0721-0814-16:53
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From 2ff5ba74bae7252ded6908590339f334343be0bd Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Thu, 14 Aug 2025 09:11:34 +0000
Subject: [PATCH 17/32] Update OpenIDConnect.yml
---
.github/workflows/OpenIDConnect.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/OpenIDConnect.yml b/.github/workflows/OpenIDConnect.yml
index 40edf19c2..f14dce965 100644
--- a/.github/workflows/OpenIDConnect.yml
+++ b/.github/workflows/OpenIDConnect.yml
@@ -7,7 +7,7 @@ permissions:
contents: read
env:
- AZURE_WEBAPP_NAME: githubtest2 # Set this to your application's name
+ AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
From 11f90ebe96eec2850c71b0462be423a48311dbd6 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Thu, 14 Aug 2025 09:30:25 +0000
Subject: [PATCH 18/32] Update maincredentials.yml
---
.github/workflows/maincredentials.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/maincredentials.yml b/.github/workflows/maincredentials.yml
index 90b34ca7e..9f9a98aa4 100644
--- a/.github/workflows/maincredentials.yml
+++ b/.github/workflows/maincredentials.yml
@@ -1,6 +1,6 @@
name: .NET Core CREDENTIALS
-on: [push]
+on: [pull_request]
env:
AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
From c2e5a2151c20ef7ee8bc6b1b4a7c46ebbc611eb4 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Thu, 14 Aug 2025 09:30:47 +0000
Subject: [PATCH 19/32] Update main.yml
---
.github/workflows/main.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 235508aa7..2933fa40c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,4 +1,4 @@
-on: [push]
+on: [pull_request]
env:
AZURE_WEBAPP_NAME: githubtest2 # Set this to your application's name
From 16de1c9184cc5011708e0929f9e4527417eee955 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 01:49:08 +0000
Subject: [PATCH 20/32] Update OpenIDConnect.yml
---
.github/workflows/OpenIDConnect.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/OpenIDConnect.yml b/.github/workflows/OpenIDConnect.yml
index f14dce965..056b8ffe0 100644
--- a/.github/workflows/OpenIDConnect.yml
+++ b/.github/workflows/OpenIDConnect.yml
@@ -7,7 +7,7 @@ permissions:
contents: read
env:
- AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
+ AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
From d684915bf839d2e89860ce1bfb1788efca699b13 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 01:55:19 +0000
Subject: [PATCH 21/32] Update OpenIDConnect.yml
---
.github/workflows/OpenIDConnect.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/OpenIDConnect.yml b/.github/workflows/OpenIDConnect.yml
index 056b8ffe0..cbefce24a 100644
--- a/.github/workflows/OpenIDConnect.yml
+++ b/.github/workflows/OpenIDConnect.yml
@@ -7,7 +7,7 @@ permissions:
contents: read
env:
- AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
+ AZURE_WEBAPP_NAME: githubtest1 # Set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # Set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6.0.x' # Set this to the dot net version to use
From 23305c4796642fc5439a13f9cd5779c923163caf Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 02:43:28 +0000
Subject: [PATCH 22/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 2cbba42d8..634533439 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 888-0721-0814-16:53
+
Hello World from .NET 7 111
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From 9fc1f687546611cd67b95d4f23077ce840361de8 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 07:57:54 +0000
Subject: [PATCH 23/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 634533439..5bcecd7ee 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 111
+
Hello World from .NET 7 111222
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From f369cd30a9913c66bf1389f264d2a844bb9b6236 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 08:16:38 +0000
Subject: [PATCH 24/32] Update Index.cshtml
---
Pages/Index.cshtml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 5bcecd7ee..035cd1885 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -1,11 +1,11 @@
-@page
+3@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
-
Hello World from .NET 7 111222
+
Hello World from .NET 7 1112223
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From c376f85a7087d47d8abd7b4eac7696da7b8f703f Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 08:17:07 +0000
Subject: [PATCH 25/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 035cd1885..8a0574235 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -1,4 +1,4 @@
-3@page
+@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
From 4aa5c9be9344a13b21fff49f52b8c28035316fb9 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 08:20:52 +0000
Subject: [PATCH 26/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 8a0574235..807029481 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 1112223
+
Hello World from .NET 7 1
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From c82c73c7abe474e112941928abedb6f456599bab Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 08:25:36 +0000
Subject: [PATCH 27/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 807029481..3c5aaebe5 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 1
+
Hello World from .NET 7 2
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From 0d24ebdd6611ded8a74a800638eea004967943a3 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 08:46:02 +0000
Subject: [PATCH 28/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 3c5aaebe5..11f88a611 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 2
+
Hello World from .NET 7 3
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From a38aff2d565bd9d43e73b48305592554cfc6a2ac Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Fri, 15 Aug 2025 09:06:29 +0000
Subject: [PATCH 29/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 11f88a611..67c61e9e1 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 7 3
+
Hello World from .NET 666
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From f24e8499fe18bc8d1217e7f4d1c0665fb015d50a Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Mon, 18 Aug 2025 01:18:11 +0000
Subject: [PATCH 30/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 67c61e9e1..39f01165a 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 666
+
Hello World from .NET 0818-1
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From 0a04858de159fe4b782eca022839014942702f67 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Mon, 18 Aug 2025 07:03:14 +0000
Subject: [PATCH 31/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 39f01165a..7b601bc70 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 0818-1
+
Hello World from .NET 0818-1-2
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion
From f63c08c2fdd187f37a20797e64af74a418d5ab65 Mon Sep 17 00:00:00 2001
From: liusliu2023 <140889996+liusliu2023@users.noreply.github.com>
Date: Mon, 18 Aug 2025 08:08:04 +0000
Subject: [PATCH 32/32] Update Index.cshtml
---
Pages/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 7b601bc70..92a7c9af9 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -5,7 +5,7 @@
}
-
Hello World from .NET 0818-1-2
+
Hello World from .NET 0818-secondBranch
Learn about building Web apps with ASP.NET Core.
Host operating system: @Model.OSVersion