Skip to content

Commit 2036f5b

Browse files
committed
Update NuGet.org job
1 parent 8920092 commit 2036f5b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,5 @@ jobs:
119119
path: ${{ env.NuGetDir }}
120120
- name: Setup .NET
121121
uses: actions/setup-dotnet@v4
122-
with:
123-
source-url: https://api.nuget.org/v3/index.json
124-
env:
125-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
126122
- name: Publish to NuGet
127-
run: dotnet nuget push ${{ env.NuGetDir }}/*.nupkg --skip-duplicate
123+
run: dotnet nuget push --api-key "${{ secrets.NUGET_API_KEY }}" ${{ env.NuGetDir }}/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)