From a6817a1a88136ba47b4dc7620fb399fc6f4813ed Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 18 Dec 2025 21:15:55 +0000 Subject: [PATCH] Fix NuGet publish glob matching both packages The glob pattern SharpAssert.*.nupkg was matching both the main package and the Runtime package, causing the publish to fail. Changed to SharpAssert.[0-9]*.nupkg which only matches packages starting with a version number, excluding SharpAssert.Runtime. --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 19e6b3c..4920d0c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -81,9 +81,9 @@ jobs: --source https://api.nuget.org/v3/index.json \ --skip-duplicate - # Publish main package git (depends on Runtime) + # Publish main package (depends on Runtime) echo "Publishing SharpAssert (main package)..." - dotnet nuget push ./packages/SharpAssert.*.nupkg \ + dotnet nuget push ./packages/SharpAssert.[0-9]*.nupkg \ --api-key ${{ secrets.NUGET_API_KEY }} \ --source https://api.nuget.org/v3/index.json \ --skip-duplicate