Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
@@ -12,14 +12,29 @@ pr:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-latest'
|
vmImage: 'windows-latest'
|
||||||
|
|
||||||
|
name: 'This is changed in a task, below'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
solution: '**/*.sln'
|
solution: '**/*.sln'
|
||||||
buildPlatform: 'Any CPU'
|
buildPlatform: 'Any CPU'
|
||||||
buildConfiguration: 'Release'
|
buildConfiguration: 'Release'
|
||||||
projectName: 'Gameboard.ShogiUI.Sockets'
|
projectName: 'Gameboard.ShogiUI.Sockets'
|
||||||
|
version.MajorMinor: '1.0' # Manually change this when needed to follow semver.
|
||||||
|
version.Patch: $[counter(variables['version.MajorMinor'], 0)]
|
||||||
|
versionNumber: '$(version.MajorMinor).$(version.Patch)'
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Set the name of the build (i.e. the Build.BuildNumber)
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
script: |
|
||||||
|
[string] $buildName = "$(versionNumber)_$(Build.SourceBranchName)"
|
||||||
|
Write-Host "Setting the name of the build to '$buildName'."
|
||||||
|
Write-Host "##vso[build.updatebuildnumber]$buildName"
|
||||||
|
|
||||||
- task: NuGetToolInstaller@1
|
- task: NuGetToolInstaller@1
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
@@ -37,6 +52,7 @@ steps:
|
|||||||
publishWebProjects: false
|
publishWebProjects: false
|
||||||
projects: '**/*.csproj '
|
projects: '**/*.csproj '
|
||||||
zipAfterPublish: false
|
zipAfterPublish: false
|
||||||
|
versioningScheme: byBuildNumber
|
||||||
|
|
||||||
- task: FileTransform@1
|
- task: FileTransform@1
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user