Skip to content

Commit

Permalink
Use dotnet nuget subcommand for nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
danipen authored Dec 13, 2024
1 parent 35513f2 commit 8a8e29c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
run: echo "branch=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_OUTPUT
id: extract_branch

- name: Setup NuGet
uses: NuGet/setup-nuget@v2

- name: Restore dependencies
run: nuget restore $SOLUTION
run: dotnet restore $SOLUTION

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

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

0 comments on commit 8a8e29c

Please sign in to comment.