diff --git a/.github/workflows/release-nuget.yaml b/.github/workflows/release-nuget.yaml index 318c9c65..fadff3f9 100644 --- a/.github/workflows/release-nuget.yaml +++ b/.github/workflows/release-nuget.yaml @@ -21,7 +21,12 @@ jobs: - name: Setup local NUGET source run: mkdir -p ./bin/Release/NuGet working-directory: dotnet/Cucumber.CCK + - name: NuGet login (OIDC → temp API key) + uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0 + id: login + with: + user: ${{ secrets.NUGET_USER }} - uses: cucumber/action-publish-nuget@f059d15b2dbcd962afc0d29424f4f083177255aa # v1.0.0 with: - nuget-api-key: ${{ secrets.NUGET_API_KEY }} + nuget-api-key: ${{ steps.login.outputs.NUGET_API_KEY }} working-directory: "dotnet/Cucumber.CCK"