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 070090f commit 2a314beCopy full SHA for 2a314be
1 file changed
.github/workflows/releaseBuild.yml
@@ -89,6 +89,7 @@ jobs:
89
needs: build_and_pack
90
permissions:
91
actions: read
92
+ id-token: write
93
steps:
94
- name: Add .NET global tools location to PATH
95
run: echo "$HOME/.dotnet/tools" >> "$GITHUB_PATH"
@@ -102,7 +103,12 @@ jobs:
102
103
with:
104
name: Build results (NuGet)
105
path: ./packages
106
+ - name: Log into NuGet & get short-lived API key
107
+ uses: NuGet/login@v1
108
+ id: nuget-login
109
+ with:
110
+ user: ${{ secrets.NUGET_USER }}
111
- name: Publish to NuGet
- run: dotnet nuget push ./packages/*.nupkg --source https://api.nuget.org/v3/index.json
112
+ run: dotnet nuget push ./packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
113
114
0 commit comments