From 64b95fdff3719b1927f75e317c37b7766f9a2863 Mon Sep 17 00:00:00 2001 From: dlebee <36390643+dlebee@users.noreply.github.com> Date: Thu, 23 Jul 2020 13:14:08 -0400 Subject: [PATCH] Create azure-pipeline.yaml --- azure-pipeline.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 azure-pipeline.yaml diff --git a/azure-pipeline.yaml b/azure-pipeline.yaml new file mode 100644 index 0000000..c4a063b --- /dev/null +++ b/azure-pipeline.yaml @@ -0,0 +1,45 @@ +# 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: + 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'