We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5a276 commit acc15b2Copy full SHA for acc15b2
1 file changed
.github/workflows/publish.yml
@@ -17,6 +17,7 @@ jobs:
17
18
permissions:
19
contents: write
20
+ id-token: write
21
22
steps:
23
- name: Checkout
@@ -57,5 +58,12 @@ jobs:
57
58
./nupkg/*.nupkg
59
./nupkg/*.snupkg
60
61
+ # Get a short-lived NuGet API key
62
+ - name: NuGet login (OIDC → temp API key)
63
+ uses: NuGet/login@v1
64
+ id: login
65
+ with:
66
+ user: ${{ secrets.NUGET_USERNAME }}
67
+
68
- name: Push to NuGet
- run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
69
+ run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
0 commit comments