From 99b3ba816784a6043bae0fbb2ecfffb7d48304f1 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Sun, 12 Dec 2021 14:31:39 +1000 Subject: [PATCH] Github Action files Updated --- .github/workflows/msbuild.yml | 3 ++- .github/workflows/webapi.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index f0b7fa41..4711f49d 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -3,7 +3,8 @@ name: Build Server Managers on: push: paths: - - 'src/**' + - 'src/**' + - '.github/workflows/msbuild.yml' workflow_dispatch: env: diff --git a/.github/workflows/webapi.yml b/.github/workflows/webapi.yml index 55ee6f36..38f45f0c 100644 --- a/.github/workflows/webapi.yml +++ b/.github/workflows/webapi.yml @@ -1,14 +1,13 @@ # 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 - servermanagers +name: Build and Deploy ASP.Net Core app to Azure Web app on: push: - branches: - - master paths: - 'src/ServerManager.WebApplication/**' + - '.github/workflows/webapi.yml' workflow_dispatch: jobs: @@ -37,6 +36,7 @@ jobs: path: ${{env.DOTNET_ROOT}}/webapi deploy: + if: contains(github.ref, "master") runs-on: windows-latest needs: build environment: