Skip to content

Commit e645210

Browse files
Burgynclaude
andcommitted
Fix NuGet push to search only src directory for packages
Narrow the find path from `.` to `./src` to avoid accidentally pushing unintended .nupkg files from outside the source tree. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c8cd82f commit e645210

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ jobs:
9191
run: dotnet pack --configuration Release --no-build
9292

9393
- name: Find and Publish NuGet Package
94-
run: dotnet nuget push $(find . -type f -name "*.nupkg") --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
94+
run: dotnet nuget push $(find ./src -type f -name "*.nupkg") --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)