Skip to content

Commit 80e958a

Browse files
authored
ci: simplify NuGet push command (#629)
1 parent 65b666a commit 80e958a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ jobs:
7474
name: NuGet packages
7575
path: packages
7676
- name: Push packages
77-
# The find,xargs chain below seems unnecessarily complex, but is required to work around https://github.com/NuGet/Home/issues/4393 :/
78-
run: find packages -name '*.nupkg' | xargs -i dotnet nuget push --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json {}
77+
run: |
78+
dotnet nuget push "*.nupkg"
79+
--api-key ${{ secrets.NUGET_API_KEY }}
80+
--source https://api.nuget.org/v3/index.json
7981
- uses: dotnet/nbgv@v0.3.1
8082
id: nbgv
8183
- name: Create GitHub release

0 commit comments

Comments
 (0)