From fa3e3d8e0e5bd5721df9363e142fbb691afa2327 Mon Sep 17 00:00:00 2001 From: Ivan Paulovich Date: Sat, 19 Oct 2019 17:02:10 +0200 Subject: [PATCH] Create Nuget CI/CD #11 --- azure-pipelines.yml | 13 +++++++++++-- ...icrosoft.Extensions.DependencyInjection.csproj | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 84e5444..5e9a4e6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,6 +33,15 @@ steps: command: 'test' projects: 'test/UnitTests/UnitTests.csproj' testRunTitle: 'Test' + +- task: DotNetCoreCLI@2 + inputs: + command: 'pack' + packagesToPack: 'src/**/*.csproj' + nobuild: true + includesymbols: true + includesource: true + versioningScheme: 'off' - task: GitHubRelease@1 inputs: @@ -48,5 +57,5 @@ steps: inputs: command: 'push' packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' - nuGetFeedType: 'internal' - publishVstsFeed: 'b7cd81e2-8a4e-477b-9765-1cd4cfd9b5d5' \ No newline at end of file + nuGetFeedType: 'external' + publishFeedCredentials: 'NugetOrg' \ No newline at end of file diff --git a/src/FluentMediator.Microsoft.Extensions.DependencyInjection/FluentMediator.Microsoft.Extensions.DependencyInjection.csproj b/src/FluentMediator.Microsoft.Extensions.DependencyInjection/FluentMediator.Microsoft.Extensions.DependencyInjection.csproj index 7866eed..886514f 100644 --- a/src/FluentMediator.Microsoft.Extensions.DependencyInjection/FluentMediator.Microsoft.Extensions.DependencyInjection.csproj +++ b/src/FluentMediator.Microsoft.Extensions.DependencyInjection/FluentMediator.Microsoft.Extensions.DependencyInjection.csproj @@ -11,6 +11,21 @@ + + true + snupkg + + + + + + + + true + true + snupkg + +