Skip to content

Pack all library packages into a flat release artifact#4

Merged
Malcolmnixon merged 1 commit into
mainfrom
fix/flat-nuget-package-artifacts
Jul 2, 2026
Merged

Pack all library packages into a flat release artifact#4
Malcolmnixon merged 1 commit into
mainfrom
fix/flat-nuget-package-artifacts

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

The release produced only one NuGet package because the 'Upload packages' step collected packages from a single project's bin/Release folder (src/DemaConsulting.Rendering/), while 'dotnet pack' writes each of the five library packages into its own per-project bin/Release folder. The other four nupkg/snupkg were never uploaded, so the release job never saw them.

Pack the solution into a single flat 'packages' output directory (dotnet pack --output packages) so all five nupkg and their snupkg symbol packages land in one folder, and upload packages/.nupkg and packages/.snupkg. The resulting packages- artifact is a flat archive with every package file at its root, which the release job extracts to artifacts/ for 'dotnet nuget push artifacts/*.nupkg' and the GitHub release.

Verified locally: 'dotnet pack Rendering.slnx --output packages' emits all five library nupkg plus five snupkg into one flat folder, with no test packages.

The release produced only one NuGet package because the 'Upload packages' step
collected packages from a single project's bin/Release folder
(src/DemaConsulting.Rendering/), while 'dotnet pack' writes each of the five
library packages into its own per-project bin/Release folder. The other four
nupkg/snupkg were never uploaded, so the release job never saw them.

Pack the solution into a single flat 'packages' output directory (dotnet pack
--output packages) so all five nupkg and their snupkg symbol packages land in
one folder, and upload packages/*.nupkg and packages/*.snupkg. The resulting
packages-<os> artifact is a flat archive with every package file at its root,
which the release job extracts to artifacts/ for 'dotnet nuget push
artifacts/*.nupkg' and the GitHub release.

Verified locally: 'dotnet pack Rendering.slnx --output packages' emits all five
library nupkg plus five snupkg into one flat folder, with no test packages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 2, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the build workflow packaging output so the release pipeline receives all NuGet packages (and symbols) produced by solution-wide packing, rather than only those emitted under a single project’s bin/Release directory.

Changes:

  • Packs with dotnet pack --output packages to emit all .nupkg/.snupkg into a single flat output folder.
  • Uploads packages/*.nupkg and packages/*.snupkg as the packages-<os> artifact so the release job can push artifacts/*.nupkg.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build.yaml
@Malcolmnixon
Malcolmnixon merged commit 169acbd into main Jul 2, 2026
7 checks passed
@Malcolmnixon
Malcolmnixon deleted the fix/flat-nuget-package-artifacts branch July 2, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants