Skip to content

Commit 3c24021

Browse files
Copilotdex3r
andcommitted
feat: include and publish symbol packages for NuGet artifacts
Co-authored-by: dex3r <3155725+dex3r@users.noreply.github.com>
1 parent 6c3c938 commit 3c24021

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,11 @@ jobs:
7474
- name: Publish Abstractions package
7575
run: dotnet nuget push ./artifacts/EasySourceGenerators.Abstractions.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}
7676

77+
- name: Publish Abstractions symbols package
78+
run: dotnet nuget push ./artifacts/EasySourceGenerators.Abstractions.*.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}
79+
7780
- name: Publish Generators package
7881
run: dotnet nuget push ./artifacts/EasySourceGenerators.Generators.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}
82+
83+
- name: Publish Generators symbols package
84+
run: dotnet nuget push ./artifacts/EasySourceGenerators.Generators.*.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}

EasySourceGenerators.Abstractions/EasySourceGenerators.Abstractions.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8+
<IncludeSymbols>true</IncludeSymbols>
9+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
810
<Version>0.1.1-alpha</Version>
911
<Title>Easy Source Generators Abstractions</Title>
1012
<Description>Abstractions used by EasySourceGenerators.</Description>

EasySourceGenerators.Generators/EasySourceGenerators.Generators.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<IsRoslynAnalyzer>true</IsRoslynAnalyzer>
88
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
10+
<IncludeSymbols>true</IncludeSymbols>
11+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1012
<Version>0.1.1-alpha</Version>
1113
<Title>Easy Source Generators</Title>
1214
<Description>Source Generators made easy. Write code that generates code without learning Roslyn Source Generators. Simply write regular code, this package will do the hard work for you.</Description>

0 commit comments

Comments
 (0)