2021-02-01 23:34:07 -05: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:
|
|
|
|
|
2021-02-07 00:25:20 -05:00
|
|
|
- task: gitversion/setup@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '5.6.0'
|
|
|
|
|
|
|
|
- task: gitversion/execute@0
|
2021-02-01 23:34:07 -05:00
|
|
|
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:
|
|
|
|
command: 'pack'
|
|
|
|
packagesToPack: '**/*.csproj'
|
|
|
|
includesymbols: true
|
|
|
|
includesource: true
|
|
|
|
versioningScheme: 'byEnvVar'
|
|
|
|
versionEnvVar: 'GitVersion.NuGetVersion'
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
inputs:
|
|
|
|
command: 'push'
|
|
|
|
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
|
|
|
|
nuGetFeedType: 'external'
|
|
|
|
publishFeedCredentials: 'PoweredSoftNuget'
|