diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c0b1f4d6..1a07880d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,6 +17,16 @@ trigger: - azure-pipelines.yml - .github/ISSUE_TEMPLATE/*.yml - .github/workflows/*.yml +pr: + branches: + include: + - main + paths: + exclude: + - README.md + - azure-pipelines.yml + - .github/ISSUE_TEMPLATE/*.yml + - .github/workflows/*.yml pool: @@ -134,6 +144,7 @@ steps: secureFile: 'Snap.Hutao.CI.cer' - task: GitHubRelease@1 + condition: or(eq(variables['Build.Reason'], 'Manual'), eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.Reason'], 'BatchedCI')) inputs: gitHubConnection: 'github.com_Masterain' repositoryName: 'DGP-Studio/Snap.Hutao'