From 65e531664ecb4bec47d0d77b1aa2aae9cbb81187 Mon Sep 17 00:00:00 2001 From: Christopher Wolf <4867233+HaGGi13@users.noreply.github.com> Date: Sun, 22 Feb 2026 22:12:27 +0100 Subject: [PATCH] Simplify NuGet publishing Removed OIDC-based login and using a direct secret key instead, because the OIDC-based solution throw a 401 even it was correct configured. --- .github/workflows/release.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fb99ab0..2dcbed9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -85,19 +85,10 @@ jobs: - name: Validate NuGet package run: dotnet nuget verify ./nupkg/*.nupkg --all || true # 'verify' checks signatures; use 'true' fallback if unsigned - # --- Trusted Publishing: OIDC login - - name: NuGet login (OIDC → temp API key) - env: - NUGET_USER: ${{ secrets.NUGET_USER }} - uses: NuGet/login@v1 - id: nuget_login - with: - user: $NUGET_USER - # --- Push to nuget.org --- - name: Push to NuGet.org env: - NUGET_API_KEY: ${{ steps.nuget_login.outputs.NUGET_API_KEY }} + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: > dotnet nuget push ./nupkg/*.nupkg --api-key $NUGET_API_KEY