From 8ddb51557d47d9404d7c8e715e01be92e0ab99ec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 07:59:17 +0000 Subject: [PATCH 1/4] Initial plan From a71df2a399cecbcdb61a372bbf78e3649982521b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 08:00:58 +0000 Subject: [PATCH 2/4] Fix NuGet publish workflow to use dotnet nuget push instead of nuget.exe Co-authored-by: gfs <98900+gfs@users.noreply.github.com> --- .github/workflows/publishnuget.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/publishnuget.yml b/.github/workflows/publishnuget.yml index c2b6c59..80cadbb 100644 --- a/.github/workflows/publishnuget.yml +++ b/.github/workflows/publishnuget.yml @@ -34,9 +34,5 @@ jobs: run: dotnet test --no-restore --verbosity normal - name: Build run: dotnet pack --no-restore StreamRegex.Extensions -o NuPkgs - - name: Setup NuGet.exe for use with actions - uses: NuGet/setup-nuget@v1.0.5 - with: - nuget-api-key: ${{secrets.NUGET_API_KEY}} - name: Nuget Publish - run: nuget push NuPkgs/*.*nupkg -Source https://api.nuget.org/v3/index.json + run: dotnet nuget push NuPkgs/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json From 8cb37d6130587ffac4e30ee72844cf0f572cb443 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 08:01:29 +0000 Subject: [PATCH 3/4] Use environment variable for API key and add --skip-duplicate flag Co-authored-by: gfs <98900+gfs@users.noreply.github.com> --- .github/workflows/publishnuget.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publishnuget.yml b/.github/workflows/publishnuget.yml index 80cadbb..1507b69 100644 --- a/.github/workflows/publishnuget.yml +++ b/.github/workflows/publishnuget.yml @@ -35,4 +35,6 @@ jobs: - name: Build run: dotnet pack --no-restore StreamRegex.Extensions -o NuPkgs - name: Nuget Publish - run: dotnet nuget push NuPkgs/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push NuPkgs/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate + env: + NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} From 4e31dbd02b36a8a76079e27f2a6df8ed0219b5c3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 22:50:11 +0000 Subject: [PATCH 4/4] Fix step name capitalization and quote API key variable Co-authored-by: gfs <98900+gfs@users.noreply.github.com> --- .github/workflows/publishnuget.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publishnuget.yml b/.github/workflows/publishnuget.yml index 1507b69..9b9d933 100644 --- a/.github/workflows/publishnuget.yml +++ b/.github/workflows/publishnuget.yml @@ -34,7 +34,7 @@ jobs: run: dotnet test --no-restore --verbosity normal - name: Build run: dotnet pack --no-restore StreamRegex.Extensions -o NuPkgs - - name: Nuget Publish - run: dotnet nuget push NuPkgs/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate + - name: NuGet Publish + run: dotnet nuget push NuPkgs/*.nupkg --api-key "$NUGET_API_KEY" --source https://api.nuget.org/v3/index.json --skip-duplicate env: NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}