From 976d12db558b751c122281be33b35174c175ae83 Mon Sep 17 00:00:00 2001 From: OluwaVader Date: Sat, 28 Feb 2026 19:45:45 +0100 Subject: [PATCH] extract apikey from oidc login --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dfb9ab..770256c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: permissions: id-token: write - contents: read + contents: write env: # For tag pushes: strip the 'v' prefix (v1.0.0 -> 1.0.0) @@ -64,6 +64,7 @@ jobs: --output ./artifacts - name: Nuget Login (OIDC) + id: login uses: NuGet/login@v1 with: user: OluwaVader @@ -73,6 +74,7 @@ jobs: dotnet nuget push "./artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate + --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" - name: Create tag if not exists if: github.event_name == 'workflow_dispatch'