Skip to content

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ jobs:
119119
if: startsWith(github.ref, 'refs/tags/')
120120
permissions:
121121
contents: write
122+
id-token: write
122123
name: 🐿 Publish
123124
steps:
124125
- name: 📥 Download NuGet package artifact
@@ -136,5 +137,10 @@ jobs:
136137
body_path: ReleaseNotes.md
137138
prerelease: ${{ contains(github.ref_name, '-') }}
138139
files: "*.nupkg"
140+
- name: 🔑 Retrieve NuGet API key
141+
uses: NuGet/login@v1
142+
id: nuget-login
143+
with:
144+
user: 0xced
139145
- name: 🚀 Publish NuGet package on nuget.org
140-
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
146+
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}"

0 commit comments

Comments
 (0)