Skip to content

Commit eef6828

Browse files
committed
Add support for sourcelink
1 parent 148db0e commit eef6828

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
run: |
7272
dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://nuget.pkg.github.com/HMBSbige -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
7373
dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate
74+
dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.snupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate
7475
7576
release:
7677
name: Release

CryptoBase.Abstractions/CryptoBase.Abstractions.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
<Description>Abstractions for CryptoBase.</Description>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
11+
</ItemGroup>
12+
913
</Project>

CryptoBase.BouncyCastle/CryptoBase.BouncyCastle.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
1011
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
1112
</ItemGroup>
1213

CryptoBase/CryptoBase.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

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

55
<PropertyGroup>
66
<Description>A fast crypto library for .NET.</Description>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
11+
</ItemGroup>
12+
913
<ItemGroup>
1014
<ProjectReference Include="..\CryptoBase.Abstractions\CryptoBase.Abstractions.csproj" />
1115
</ItemGroup>

common.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
<NoWarn>CS1591</NoWarn>
1616
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1717
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
18+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
19+
<IncludeSymbols>true</IncludeSymbols>
20+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1821
</PropertyGroup>
1922
</Project>

0 commit comments

Comments
 (0)