Skip to content

Commit 491f472

Browse files
committed
Update build pipeline and embed debug info
Removed `--no-build` from `dotnet pack` in `cd-release.yml` to ensure the project is built before packaging. Removed the `dotnet nuget push` step from the release pipeline. Added `<DebugType>embedded</DebugType>` to `Directory.Build.Props` to embed debugging information in assemblies.
1 parent 3c3debb commit 491f472

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/cd-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
4040

4141
- name: Pack
42-
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
42+
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
4343

4444
- name: Push
4545
run: dotnet nuget push CryptoNet.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}

Directory.Build.Props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<!-- Generate symbol packages for NuGet -->
2424
<IncludeSymbols>true</IncludeSymbols>
2525
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
26+
<DebugType>embedded</DebugType>
2627
</PropertyGroup>
2728

2829
</Project>

0 commit comments

Comments
 (0)