File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,24 +232,21 @@ jobs:
232232 - name : Pull latest (includes version bump commit)
233233 run : git pull origin master
234234
235- - name : Setup .NET
236- uses : actions/setup-dotnet@v4
237- with :
238- dotnet-version : ' 8.0.x'
239-
240- - name : Install NuGet CLI
241- run : dotnet tool install --global NuGet.CommandLine --version '*'
235+ - name : Setup NuGet
236+ uses : nuget/setup-nuget@v2
242237
243238 - name : Build NuGet package
244239 run : |
245240 cd src/Proyecto26.RestClient
246- ~/.dotnet/tools/ nuget pack Proyecto26.RestClient.nuspec \
241+ nuget pack Proyecto26.RestClient.nuspec \
247242 -Version ${{ needs.release.outputs.new_version }} \
248243 -OutputDirectory ../../artifacts
244+ echo "Built package:"
245+ ls -la ../../artifacts/*.nupkg
249246
250247 - name : Publish to NuGet
251248 run : |
252- ~/.dotnet/tools/ nuget push artifacts/*.nupkg \
249+ nuget push artifacts/*.nupkg \
253250 -ApiKey ${{ secrets.NUGET_API_KEY }} \
254251 -Source https://api.nuget.org/v3/index.json \
255252 -SkipDuplicate
You can’t perform that action at this time.
0 commit comments