Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,16 @@ jobs:
files: coverage.cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

- name: Pack NuGet package
run: dotnet pack src/Scrutor/Scrutor.csproj --configuration Release --output ./artifacts

- name: Upload NuGet package artifact
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: ./artifacts/*.nupkg
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The artifact upload path pattern ./artifacts/*.nupkg only matches .nupkg files but not .snupkg (symbol package) files. According to the PR description, both .nupkg and .snupkg files are created. Consider using ./artifacts/*.*nupkg or ./artifacts/** to include both package types in the artifact upload.

Suggested change
path: ./artifacts/*.nupkg
path: ./artifacts/*.*nupkg

Copilot uses AI. Check for mistakes.

- name: Push to GitHub Packages
if: github.event_name == 'push' && startsWith(github.repository, 'khellang/')
run: dotnet nuget push ./artifacts/*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate