Skip to content

Commit

Permalink
Include symbols packages for NuGet (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk authored Nov 27, 2023
1 parent bdd062d commit ae5d852
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ jobs:

- if: ${{ fromJSON(steps.tag.outputs.create) }}
name: Pack
run: dotnet pack -c Release -o dist
# https://learn.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
run: dotnet pack -c Release -o dist -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg

- if: ${{ fromJSON(steps.tag.outputs.create) }}
name: Push
run: dotnet nuget push dist/*.nupkg -s https://api.nuget.org/v3/index.json -k "${{ secrets.NUGET_API_KEY }}" --skip-duplicate
run: |
cd dist
# this should upload snupkgs in the same folder
dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k "${{ secrets.NUGET_API_KEY }}" --skip-duplicate
- if: ${{ fromJSON(steps.tag.outputs.create) }}
run: dotnet tool update -g docfx
Expand Down

0 comments on commit ae5d852

Please sign in to comment.