Skip to content

Commit 74a47b8

Browse files
committed
fix(ci): use nuget/setup-nuget action for NuGet CLI
1 parent e149fcf commit 74a47b8

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)