From f3b21d86fc2ef794cc618a76e170f50a196dbda0 Mon Sep 17 00:00:00 2001 From: Karl Levik Date: Tue, 10 Aug 2021 18:56:13 +0100 Subject: [PATCH] Trigger on tags, exclude master. Run release task if tag starting with 'v' --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e02c995..c24079e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,7 +2,14 @@ variables: MYSQL_ROOT_PASSWORD: mysql_root_pwd MYSQL_HOST: '127.0.0.1' MYSQL_PORT: '3306' + trigger: + branches: + exclude: + - master + tags: + include: + - '*' paths: exclude: - '*.md' @@ -49,7 +56,7 @@ stages: goals: 'package' - task: GithubRelease@0 displayName: ‘Create GitHub Release’ - condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/v') + condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) inputs: githubConnection: KarlConnection repositoryName: DiamondLightSource/gda-ispyb-api