Skip to content

Commit

Permalink
Add support for sourcelink
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed May 17, 2022
1 parent 148db0e commit eef6828
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
run: |
dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://nuget.pkg.github.com/HMBSbige -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate
dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.snupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate
release:
name: Release
Expand Down
4 changes: 4 additions & 0 deletions CryptoBase.Abstractions/CryptoBase.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
<Description>Abstractions for CryptoBase.</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions CryptoBase.BouncyCastle/CryptoBase.BouncyCastle.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
</ItemGroup>

Expand Down
6 changes: 5 additions & 1 deletion CryptoBase/CryptoBase.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\common.props" />

<PropertyGroup>
<Description>A fast crypto library for .NET.</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CryptoBase.Abstractions\CryptoBase.Abstractions.csproj" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions common.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
<NoWarn>CS1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
</Project>

0 comments on commit eef6828

Please sign in to comment.