Skip to content

Publish each feed independently and keep each package in its own folder#2910

Merged
nohwnd merged 1 commit into
mainfrom
nohwnd-fix-publish-package-folders
Jul 19, 2026
Merged

Publish each feed independently and keep each package in its own folder#2910
nohwnd merged 1 commit into
mainfrom
nohwnd-fix-publish-package-folders

Conversation

@nohwnd

@nohwnd nohwnd commented Jul 19, 2026

Copy link
Copy Markdown
Member

When a publish fails I want to grab the exact built package from the pipeline artifact and upload it to psgallery, nuget or choco by hand. Two changes for that.

Each package in its own folder. So the right one is easy to grab from the artifact:

Folder Published to
tmp/PSGallery/Pester/ PowerShell Gallery (the module folder)
tmp/nuget.org/Pester.<version>.nupkg NuGet.org
tmp/chocolatey/Pester.<version>.nupkg Chocolatey

NuGet.org and Chocolatey get the identical signed package, so I pack once and copy. The pack input stays tmp/nuget (the nuspec globs it), only the output nupkg moves into the per-target folder, so the nuspec does not change.

Keep going when a feed fails. Before this a failed gallery push aborted the script (ErrorActionPreference = 'Stop') and nuget and choco were never attempted. Now each push runs in its own try/catch, the failures are collected, and the build fails at the end listing which feeds to redo by hand. The artifact is published on succeededOrFailed(), so the packages are there even when the run is red.

Also drops the gallery capture from #2780. The gallery is published from the module folder, not a nupkg, so that captured package was never something we publish.

Verified release.ps1 parses. Not run end to end, that needs the signing vault and the publish keys.

🤖

When a publish fails I want to grab the exact built package from the pipeline artifact and upload it to psgallery, nuget or choco by hand. So put each target's package in its own folder under tmp: tmp/nuget.org and tmp/chocolatey for the signed nupkg, and tmp/PSGallery/Pester stays the folder we publish to the gallery.

Also keep going when a feed fails instead of aborting on the first error. Before this a failed gallery push skipped nuget and choco. Now each push runs in its own try/catch, the failures are collected, and the build fails at the end listing which feeds to redo by hand.

And drop the gallery capture from #2780. The gallery is published from the module folder, not a nupkg, so that captured package was never something we publish.

🤖
@nohwnd
nohwnd force-pushed the nohwnd-fix-publish-package-folders branch from 8d6239f to 6f783ae Compare July 19, 2026 08:22
@nohwnd nohwnd changed the title Put NuGet and Chocolatey packages into their own named folders Publish each feed independently and keep each package in its own folder Jul 19, 2026
@nohwnd
nohwnd merged commit 0e79666 into main Jul 19, 2026
3 of 12 checks passed
@nohwnd
nohwnd deleted the nohwnd-fix-publish-package-folders branch July 19, 2026 08:28
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.

1 participant