From feecb993ddfeb1657ecf8eca6b6914fa330d6789 Mon Sep 17 00:00:00 2001 From: Matteo Cominetti Date: Thu, 30 Jul 2020 14:39:04 +0100 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1ad9d77..b759a62 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,9 @@ # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net trigger: -- master + branches: + include: + - refs/tags/* pool: vmImage: 'windows-latest' @@ -18,6 +20,16 @@ variables: steps: +- powershell: | + $tags = git tag --sort=-creatordate + $tag = $tags[0] + +#update build number +- bash: | + echo "##vso[build.updatebuildnumber]Release $(tag)" + condition: eq(variables['release.enabled'], 'true') + name: SetReleaseBuildName + - task: NuGetToolInstaller@1 - task: NuGetCommand@2