Skip to content

Commit 334a572

Browse files
authored
Fix Trusted Publishing (#301)
+semver:patch
1 parent 190a81f commit 334a572

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,10 @@ jobs:
2929
- name: Pack
3030
run: dotnet pack --no-build --configuration Release --output ./Release
3131

32-
- name: Publish to NuGet
33-
run: dotnet nuget push ./Release/*.nupkg -s nuget.org
32+
- name: NuGet Login
33+
uses: NuGet/login@v1
34+
with:
35+
user: hazzik
36+
37+
- name: NuGet Publish
38+
run: dotnet nuget push ./Release/*.nupkg -s nuget.org -k ${{ steps.login.outputs.NUGET_API_KEY }}

0 commit comments

Comments
 (0)