Skip to content

Commit 812a157

Browse files
natemcmasterclaude
andcommitted
ci: fix nuget login output reference
Add id to nuget-login step and reference the NUGET_API_KEY from step outputs instead of environment variable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6f6b725 commit 812a157

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ jobs:
7676
- name: Push to GitHub package registry
7777
run: dotnet nuget push packages/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source github --skip-duplicate
7878
- name: NuGet login (trusted publishing)
79+
id: nuget-login
7980
uses: nuget/login@v1
8081
with:
8182
user: natemcmaster
8283
- name: Push to NuGet.org
83-
run: dotnet nuget push packages/*.nupkg --api-key ${{ env.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
84+
run: dotnet nuget push packages/*.nupkg --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
8485
- name: Create GitHub release
8586
uses: softprops/action-gh-release@v2
8687
env:

0 commit comments

Comments
 (0)