2020-03-13 11:50:11 -04:00
|
|
|
# Starter pipeline
|
|
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
|
|
# Add steps that build, run tests, deploy, and more:
|
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- refs/tags/*
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- task: GitVersion@5
|
|
|
|
displayName: 'Git Version'
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: 'restore'
|
|
|
|
projects: '**/*.csproj'
|
|
|
|
feedsToUse: 'select'
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
|
|
|
command: 'build'
|
|
|
|
projects: '**/*.csproj'
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
inputs:
|
2020-03-13 12:00:31 -04:00
|
|
|
command: 'pack'
|
|
|
|
packagesToPack: '**/*.csproj'
|
|
|
|
includesymbols: true
|
|
|
|
includesource: true
|
2020-03-13 11:50:11 -04:00
|
|
|
versioningScheme: 'byEnvVar'
|
|
|
|
versionEnvVar: 'GitVersion.NuGetVersion'
|
2020-03-13 12:06:33 -04:00
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2020-03-13 12:00:31 -04:00
|
|
|
inputs:
|
|
|
|
command: 'push'
|
|
|
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
|
|
|
nuGetFeedType: 'external'
|
|
|
|
publishFeedCredentials: 'PoweredSoftNuget'
|