From e7729d14276bad530b0bef73efb3cae766819175 Mon Sep 17 00:00:00 2001 From: Raffaele Marcello Date: Wed, 30 Oct 2024 16:43:49 +0100 Subject: [PATCH] Refactor dotnet-deploy.yml and RazorPagesTestSample.Tests.csproj --- .github/workflows/dotnet-deploy.yml | 6 +++--- .github/workflows/undeploy.yml | 18 +++++++----------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/dotnet-deploy.yml b/.github/workflows/dotnet-deploy.yml index 068ce7d6..2b110643 100644 --- a/.github/workflows/dotnet-deploy.yml +++ b/.github/workflows/dotnet-deploy.yml @@ -10,9 +10,9 @@ on: push: branches: [ main ] paths: src/Application/** - pull_request: - branches: [ main ] - paths: src/Application/** +# pull_request: +# branches: [ main ] +# paths: src/Application/** # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: diff --git a/.github/workflows/undeploy.yml b/.github/workflows/undeploy.yml index f8f72902..3c0b1fb3 100644 --- a/.github/workflows/undeploy.yml +++ b/.github/workflows/undeploy.yml @@ -1,4 +1,4 @@ -name: Destroy Azure Resource Group +name: Delete Azure Resource Group on: workflow_dispatch: @@ -30,13 +30,9 @@ jobs: enable-AzPSSession: true # Destroy Resource Group - - name: Destroy Resource Group - run: | - az group delete --name ${{ secrets.AZURE_RG }} --yes --no-wait - -# - name: Azure ARM Deployment -# uses: azure/ARM@v1 -# with: -# azcliversion: 2.0.72 -# inlineScript: | -# az group delete --name ${{ secrets.AZURE_RG }} --yes --no-wait \ No newline at end of file + - name: Azure ARM Deployment + uses: azure/ARM@v1 + with: + azcliversion: 2.0.72 + inlineScript: | + az group delete --name ${{ secrets.AZURE_RG }} --yes --no-wait \ No newline at end of file