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
@@ -99,6 +99,7 @@ jobs:
9999
if: startsWith(github.ref, 'refs/tags/')
100100
permissions:
101101
contents: write
102+
id-token: write
102103
name: 🐿 Publish
103104
steps:
104105
- name: 📥 Download NuGet package artifact
@@ -116,5 +117,10 @@ jobs:
116117
body_path: ReleaseNotes.md
117118
prerelease: ${{ contains(github.ref_name, '-') }}
118119
files: "*.nupkg"
120+
- name: 🔑 Retrieve NuGet API key
121+
uses: NuGet/login@v1
122+
id: nuget-login
123+
with:
124+
user: 0xced
119125
- name: 🚀 Publish NuGet package on nuget.org
120-
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
126+
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)