Skip to content

Commit ac78221

Browse files
committed
build: publish snupkg symbols
1 parent 8ff9865 commit ac78221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
- name: Pack NuGet packages (snapshot)
120120
shell: pwsh
121121
run: |
122-
dotnet pack -c Release -o $env:NuGetDirectory
122+
dotnet pack -c Release -o $env:NuGetDirectory --include-symbols -p:SymbolPackageFormat=snupkg
123123
if: |
124124
success() && github.ref == 'refs/heads/main'
125125
&& matrix.version.target == 'net8.0' && matrix.os == 'windows-latest'
@@ -131,7 +131,7 @@ jobs:
131131
if ( $env:GITHUB_REF -match '^refs/tags/v(.*)$' ) {
132132
$VERSION=$matches[1]
133133
Write-Host $VERSION
134-
dotnet pack -c Release -p:RELEASE_VERSION=$VERSION -o $env:NuGetDirectory
134+
dotnet pack -c Release -p:RELEASE_VERSION=$VERSION -o $env:NuGetDirectory --include-symbols -p:SymbolPackageFormat=snupkg
135135
} else {
136136
Write-Error "Failed to extract the version from env:GITHUB_REF"
137137
Exit 1

0 commit comments

Comments
 (0)