We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97525ad commit fe77bb7Copy full SHA for fe77bb7
.github/workflows/build.yml
@@ -185,6 +185,14 @@ jobs:
185
186
# TODO: Create a release
187
188
+ # Get a short-lived NuGet API key
189
+ - name: NuGet login (OIDC)
190
+ uses: NuGet/login@v1
191
+ id: login
192
+ with:
193
+ # Recommended: use a secret like ${{ secrets.NUGET_USER }} for your nuget.org username (profile name), NOT your email address
194
+ user: ${{ secrets.NUGET_USER }}
195
+
196
- name: Publish to nuget.org
- run: dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json
197
+ run: dotnet nuget push "*.nupkg" --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
198
working-directory: nupkgs
0 commit comments