Skip to content

Commit e1e93d2

Browse files
paulirwinclaude
andcommitted
Add NuGet package packing and artifact upload to CI workflow
Automatically pack NuGet packages on successful builds and upload them as artifacts for easy download from the build details page. This only occurs on non-PR builds and Windows builds to avoid duplication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a484313 commit e1e93d2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ jobs:
2929
run: dotnet build --no-restore
3030
- name: Test
3131
run: dotnet test --no-build --verbosity normal
32+
- name: Pack NuGet packages
33+
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest'
34+
run: dotnet pack --no-build --output nupkgs
35+
- name: Upload NuGet packages
36+
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest'
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: nuget-packages
40+
path: nupkgs/
41+
retention-days: 30

0 commit comments

Comments
 (0)