Skip to content

Commit 991b63e

Browse files
author
Martin Boje Carpentier
committed
Push package by id directly
1 parent 5026359 commit 991b63e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,4 @@ jobs:
4848
}
4949
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/${{ env.PROJECT_NAME }}/${{ env.PROJECT_NAME }}.csproj
5050
- name: Push to Nuget
51-
run: |
52-
gci ./nupkg/*.nupkg |
53-
sort LastWriteTime -Descending |
54-
select -First 1 |
55-
% { dotnet nuget push $_.FullName --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_KEY}} --skip-duplicate }
51+
run: dotnet nuget push ./nupkg/${{ env.PROJECT_NAME }}.${{ $VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_KEY}} --skip-duplicate }

0 commit comments

Comments
 (0)