Skip to content

Commit 5d2f175

Browse files
Use --skip-duplicate option when pushing NuGet packages
1 parent 1739da5 commit 5d2f175

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ jobs:
151151
run: |
152152
if [ '${{ github.event_name }}' == 'workflow_dispatch' ]; then
153153
if [ '${{ github.event.inputs.nuget-registry }}' == 'NuGet' ]; then
154-
dotnet nuget push src/**/Flecs.NET.*.nupkg --api-key '${{ secrets.NUGET_ACCESS_TOKEN }}' --source 'https://api.nuget.org/v3/index.json'
154+
dotnet nuget push src/**/Flecs.NET.*.nupkg --skip-duplicate --api-key '${{ secrets.NUGET_ACCESS_TOKEN }}' --source 'https://api.nuget.org/v3/index.json'
155155
elif [ '${{ github.event.inputs.nuget-registry }}' == 'GitHub' ]; then
156-
dotnet nuget push src/**/Flecs.NET.*.nupkg --api-key '${{ secrets.GITHUB_TOKEN }}' --source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json'
156+
dotnet nuget push src/**/Flecs.NET.*.nupkg --skip-duplicate --api-key '${{ secrets.GITHUB_TOKEN }}' --source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json'
157157
fi
158158
elif [ '${{ github.ref }}' == 'refs/heads/main' ]; then
159-
dotnet nuget push src/**/Flecs.NET.*.nupkg --api-key '${{ secrets.GITHUB_TOKEN }}' --source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json'
159+
dotnet nuget push src/**/Flecs.NET.*.nupkg --skip-duplicate --api-key '${{ secrets.GITHUB_TOKEN }}' --source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json'
160160
fi

0 commit comments

Comments
 (0)