From e1e93d220baf1bedb563016aad27e52497640b01 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Wed, 22 Oct 2025 10:54:28 -0600 Subject: [PATCH] Add NuGet package packing and artifact upload to CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/dotnet.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6e67db6..db293d7 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -29,3 +29,13 @@ jobs: run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal + - name: Pack NuGet packages + if: github.event_name != 'pull_request' && matrix.os == 'windows-latest' + run: dotnet pack --no-build --output nupkgs + - name: Upload NuGet packages + if: github.event_name != 'pull_request' && matrix.os == 'windows-latest' + uses: actions/upload-artifact@v4 + with: + name: nuget-packages + path: nupkgs/ + retention-days: 30