From dc031e02fea594d204fec556dc3988151cbd6516 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Wed, 11 Aug 2021 16:05:11 -0400 Subject: [PATCH] pipeline. --- Module.sln | 1 + azure-pipeline.yaml | 49 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 azure-pipeline.yaml diff --git a/Module.sln b/Module.sln index b29c0a3..99b221a 100644 --- a/Module.sln +++ b/Module.sln @@ -7,6 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PoweredSoft.Module.Abstract EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{434E67F5-A188-4D41-83F8-F2131A4395E1}" ProjectSection(SolutionItems) = preProject + azure-pipeline.yaml = azure-pipeline.yaml README.md = README.md EndProjectSection EndProject diff --git a/azure-pipeline.yaml b/azure-pipeline.yaml new file mode 100644 index 0000000..e7c6ded --- /dev/null +++ b/azure-pipeline.yaml @@ -0,0 +1,49 @@ +# 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/setup@0 + inputs: + versionSpec: '5.6.0' + +- task: gitversion/execute@0 + 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'