Skip to content

Commit 1f7e4fa

Browse files
committed
Fix NuGet Trusted Publishing: use 'user' input and step output for API key
1 parent 6930c16 commit 1f7e4fa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ jobs:
6262
out/*.snupkg
6363
6464
- name: NuGet Login (Trusted Publishing)
65+
id: nuget-login
6566
uses: nuget/login@v1
6667
with:
67-
nuget-source: "https://api.nuget.org/v3/index.json"
68+
user: PanoramicData
6869

6970
- name: Push to NuGet
70-
run: dotnet nuget push "out/*.nupkg" -s "https://api.nuget.org/v3/index.json"
71+
run: dotnet nuget push "out/*.nupkg" -k "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" -s "https://api.nuget.org/v3/index.json"

0 commit comments

Comments
 (0)