We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7a83f6 commit ba57d7dCopy full SHA for ba57d7d
1 file changed
.github/workflows/package.yml
@@ -25,6 +25,13 @@ jobs:
25
-p:VersionSuffix="preview.${{ github.run_number }}"
26
- name: Pack release
27
if: "!github.event.release.prerelease"
28
- run: dotnet pack --configuration Release --output ./nupkg
+ run: dotnet pack --configuration Release --output ./nupkg
29
+ # Get a short-lived NuGet API key
30
+ - name: NuGet login (OIDC → temp API key)
31
+ uses: NuGet/login@v1
32
+ id: login
33
+ with:
34
+ user: ${{ secrets.NUGET_USER }}
35
+
36
- name: Publish packages to NuGet
- run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
37
+ run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
0 commit comments