Skip to content

Commit d702fee

Browse files
committed
Include symbol packages (.snupkg) in artifact uploads
Update CI workflow to upload both .nupkg and .snupkg files: - Artifact upload now includes both package types using multi-line path - GitHub Packages push uses *.*nupkg pattern to match both extensions Symbol packages (.snupkg) contain debugging information that helps developers debug into the library code. Publishing them to GitHub Packages enables a better debugging experience.
1 parent b2c906f commit d702fee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ jobs:
4343
uses: actions/upload-artifact@v4
4444
with:
4545
name: nuget-packages
46-
path: ./artifacts/*.nupkg
46+
path: |
47+
./artifacts/*.nupkg
48+
./artifacts/*.snupkg
4749
4850
- name: Push to GitHub Packages
4951
if: github.event_name == 'push' && startsWith(github.repository, 'khellang/')
50-
run: dotnet nuget push ./artifacts/*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
52+
run: dotnet nuget push ./artifacts/*.*nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate

0 commit comments

Comments
 (0)