Skip to content

Commit

Permalink
build: publish snupkg symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi committed Dec 6, 2024
1 parent 8ff9865 commit ac78221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Pack NuGet packages (snapshot)
shell: pwsh
run: |
dotnet pack -c Release -o $env:NuGetDirectory
dotnet pack -c Release -o $env:NuGetDirectory --include-symbols -p:SymbolPackageFormat=snupkg
if: |
success() && github.ref == 'refs/heads/main'
&& matrix.version.target == 'net8.0' && matrix.os == 'windows-latest'
Expand All @@ -131,7 +131,7 @@ jobs:
if ( $env:GITHUB_REF -match '^refs/tags/v(.*)$' ) {
$VERSION=$matches[1]
Write-Host $VERSION
dotnet pack -c Release -p:RELEASE_VERSION=$VERSION -o $env:NuGetDirectory
dotnet pack -c Release -p:RELEASE_VERSION=$VERSION -o $env:NuGetDirectory --include-symbols -p:SymbolPackageFormat=snupkg
} else {
Write-Error "Failed to extract the version from env:GITHUB_REF"
Exit 1
Expand Down

0 comments on commit ac78221

Please sign in to comment.