Skip to content

Commit 2e420e6

Browse files
Merge pull request #74 from notion-dotnet/feature/72-add-support-for-dotnet-source-link
Add support for dotnet Source Link ✨
2 parents a27893d + 49fd4f8 commit 2e420e6

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ jobs:
3333
uses: actions/upload-artifact@v1
3434
with:
3535
name: Notion.Net
36-
path: ./Src/Notion.Client/bin/Release/Notion.Net.${{ github.event.release.tag_name }}.nupkg
36+
path: |
37+
./Src/Notion.Client/bin/Release/Notion.Net.${{ github.event.release.tag_name }}.nupkg
38+
./Src/Notion.Client/bin/Release/Notion.Net.${{ github.event.release.tag_name }}.snupkg
3739
3840
- name: Publish Nuget Package
39-
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json --no-symbols true
41+
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
42+
43+
- name: Publish Symbol Package

Src/Notion.Client/Notion.Client.csproj

+10
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,19 @@
1111
<PackageTags>notion;client;api;json;sdk;notion.net</PackageTags>
1212
<PackageIcon>notion-logo.png</PackageIcon>
1313
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
14+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
15+
16+
<!--Start: Create symbol package-->
17+
<IncludeSymbols>true</IncludeSymbols>
18+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
19+
<!--End: Create symbol package-->
1420
</PropertyGroup>
1521

1622
<ItemGroup>
23+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
24+
<PrivateAssets>all</PrivateAssets>
25+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
26+
</PackageReference>
1727
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1828
<PackageReference Include="JsonSubTypes" Version="1.8.0" />
1929
</ItemGroup>

0 commit comments

Comments
 (0)