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: