Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Matteo Cominetti
2020-07-30 14:39:04 +01:00
parent c438ba0bc1
commit feecb993dd
+13 -1
View File
@@ -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