From 8ddc2115c151a616b703fa8fb8ed22c648dc3493 Mon Sep 17 00:00:00 2001 From: Abhijeetuk Date: Wed, 30 Jun 2021 13:36:35 +0100 Subject: [PATCH 1/4] change to welcome message --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 9951c2c2..50dce24d 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ From 284b16bb9783e4687943e9e3505a9fc6e2320299 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde <58697993+abhijeetuk@users.noreply.github.com> Date: Wed, 30 Jun 2021 14:05:01 +0100 Subject: [PATCH 2/4] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_samplehtmlapp1.yml | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/master_samplehtmlapp1.yml diff --git a/.github/workflows/master_samplehtmlapp1.yml b/.github/workflows/master_samplehtmlapp1.yml new file mode 100644 index 00000000..ac992c9d --- /dev/null +++ b/.github/workflows/master_samplehtmlapp1.yml @@ -0,0 +1,39 @@ +# Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798 +# More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048 + +name: Azure App Service - samplehtmlapp1(Production), Build and deploy DotnetCore app + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: windows-latest + + steps: + # checkout the repo + - name: 'Checkout Github Action' + uses: actions/checkout@master + + + - name: Set up .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' + + - name: Build with dotnet + run: dotnet build --configuration Release + + - name: dotnet publish + run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp + + - name: Run Azure webapp deploy action using publish profile credentials + uses: azure/webapps-deploy@v2 + with: + app-name: samplehtmlapp1 + slot-name: Production + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7CAE41AB62C04105A91C205E7F266714 }} + package: ${{env.DOTNET_ROOT}}/myapp + From a73ff0cfe1dcf57cdc4b7f8ad602c084b6b0a92b Mon Sep 17 00:00:00 2001 From: Abhijeetuk Date: Wed, 30 Jun 2021 14:06:59 +0100 Subject: [PATCH 3/4] test --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 50dce24d..102eea3f 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ From c91b9c1e237c16e878d9b244ce0660a0b776f936 Mon Sep 17 00:00:00 2001 From: Azure App Service Date: Wed, 30 Jun 2021 17:11:10 +0100 Subject: [PATCH 4/4] Remove the App Service deployment workflow configuration from Azure Portal. --- .github/workflows/master_samplehtmlapp1.yml | 39 --------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/master_samplehtmlapp1.yml diff --git a/.github/workflows/master_samplehtmlapp1.yml b/.github/workflows/master_samplehtmlapp1.yml deleted file mode 100644 index ac992c9d..00000000 --- a/.github/workflows/master_samplehtmlapp1.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798 -# More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048 - -name: Azure App Service - samplehtmlapp1(Production), Build and deploy DotnetCore app - -on: - push: - branches: - - master - -jobs: - build-and-deploy: - runs-on: windows-latest - - steps: - # checkout the repo - - name: 'Checkout Github Action' - uses: actions/checkout@master - - - - name: Set up .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.x' - - - name: Build with dotnet - run: dotnet build --configuration Release - - - name: dotnet publish - run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp - - - name: Run Azure webapp deploy action using publish profile credentials - uses: azure/webapps-deploy@v2 - with: - app-name: samplehtmlapp1 - slot-name: Production - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7CAE41AB62C04105A91C205E7F266714 }} - package: ${{env.DOTNET_ROOT}}/myapp -