From c06d74487ec41ba69d2aac3fbac0eeb806f89de2 Mon Sep 17 00:00:00 2001 From: Sara Gowen <9001998+dynamictulip@users.noreply.github.com> Date: Sat, 1 Aug 2020 16:06:55 +0100 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a3452ae..1e30e62 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,11 +23,13 @@ steps: publishLocation: 'Container' - task: GitHubRelease@1 + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) inputs: gitHubConnection: 'dynamictulip (1)' repositoryName: 'dynamictulip/Ponydorro' action: 'create' target: '$(Build.SourceVersion)' - tagSource: 'gitTag' + tagSource: 'userSpecifiedTag' + tag: 'v$(MajorVersion).$(Build.BuildNumber)' changeLogCompareToRelease: 'lastFullRelease' changeLogType: 'commitBased' \ No newline at end of file