diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 9b65577..a81d479 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -1,12 +1,16 @@ +name: .NET Aspire + AZD + on: workflow_dispatch: push: - # Run when commits are pushed to mainline branch (main or master) - # Set this to the mainline branch you are using - branches: - - main - - master - + branches: [main] + paths: + - 'aspire-sample/**' + pull_request: + branches: [main] + paths: + - 'aspire-sample/**' + # GitHub Actions workflow to deploy to Azure using azd # To configure required secrets for connecting to Azure, simply run `azd pipeline config` @@ -59,7 +63,7 @@ jobs: env: AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} - - name: Provision Infrastructure + - name: Restore Aspire Workload run: dotnet workload restore - name: Provision Infrastructure