Skip to content

Commit

Permalink
Create Nuget CI/CD #11
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpaulovich committed Oct 19, 2019
1 parent 70315b3 commit fa3e3d8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
13 changes: 11 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -48,5 +57,5 @@ steps:
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'b7cd81e2-8a4e-477b-9765-1cd4cfd9b5d5'
nuGetFeedType: 'external'
publishFeedCredentials: 'NugetOrg'
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@

</PropertyGroup>

<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup Label="SourceLink">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01" PrivateAssets="All" />
</ItemGroup>

<PropertyGroup Label="SourceLink">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\FluentMediator\FluentMediator.csproj" />
</ItemGroup>
Expand Down

0 comments on commit fa3e3d8

Please sign in to comment.