You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/nuget/azure-pipelines.yml

44 lines
928 B
YAML

trigger:
batch: true
branches:
include:
- main
- v1.x
paths:
exclude:
- README.md
pool:
name: Default
demands:
- msbuild
- visualstudio
- vstest
variables:
buildPlatform: 'x64'
steps:
- task: NuGetToolInstaller@1
displayName: 'Use NuGet 5.10.0'
inputs:
versionSpec: '5.10.0'
checkLatest: true
- task: NuGetCommand@2
displayName: 'NuGet pack'
inputs:
command: 'pack'
packagesToPack: 'nuget/*.nuspec'
versioningScheme: 'off'
buildProperties: 'VERSION=1.9.2'
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg;build/*.nupkg;!build/*symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'sqs-nuget'
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))