Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
+13
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user