There was an error while loading. Please reload this page.
1 parent 927d5b5 commit 6670134Copy full SHA for 6670134
1 file changed
.github/workflows/dotnet.yml
@@ -90,11 +90,13 @@ jobs:
90
with:
91
name: nugets
92
93
- - uses: actions/setup-dotnet@v4
+ # Get a short-lived NuGet API key
94
+ - name: NuGet login (OIDC → temp API key)
95
+ uses: NuGet/login@v1
96
+ id: login
97
- dotnet-version: '8.0.x'
- source-url: https://api.nuget.org/v3/index.json
- env:
98
- NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
-
100
- - run: dotnet nuget push *.nupkg *.snupkg --skip-duplicate
+ user: ${{secrets.NUGET_USER}}
+
+ # Push the package
101
+ - name: NuGet push
102
+ run: dotnet nuget push *.nupkg *.snupkg --skip-duplicate --api-key ${{steps.login.outputs.NUGET_API_KEY}}
0 commit comments