Skip to content

Commit 8a8e29c

Browse files
authored
Use dotnet nuget subcommand for nuget
1 parent 35513f2 commit 8a8e29c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/nuget.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ jobs:
2121
run: echo "branch=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_OUTPUT
2222
id: extract_branch
2323

24-
- name: Setup NuGet
25-
uses: NuGet/setup-nuget@v2
26-
2724
- name: Restore dependencies
28-
run: nuget restore $SOLUTION
25+
run: dotnet restore $SOLUTION
2926

3027
- name: Setup .NET
3128
uses: actions/setup-dotnet@v4
@@ -39,4 +36,4 @@ jobs:
3936
run: dotnet test /p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal
4037

4138
- name: Publish
42-
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
39+
run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)