From bcb0e2ec03be668748e848831a9058377270cb46 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Tue, 6 Oct 2026 17:54:19 -0700 Subject: [PATCH] Publish NuGet packages from a single build Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68e6fdc3f..252a1dd2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,6 +123,7 @@ jobs: run: | dotnet .build/bin/Debug/.build.dll --target DotnetCoreTest Test CollectCodeCoverage GenerateCodeCoverageReportCobertura GenerateCodeCoverageBadges GenerateCodeCoverageSummary GenerateCodeCoverageReport - name: 📦 Pack + if: matrix.os == 'ubuntu-latest' id: pack run: | dotnet .build/bin/Debug/.build.dll --target DotnetCorePack Pack --skip Build @@ -159,27 +160,18 @@ jobs: name: 'test data-${{ matrix.os }}' path: 'artifacts/test/' - name: 🏺 Publish NuGet Packages - if: always() + if: always() && matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v7 with: - name: 'nuget-${{ matrix.os }}' + name: nuget path: 'artifacts/nuget/' - name: 🏺 Publish Documentation uses: actions/upload-artifact@v7 with: name: 'docs-${{ matrix.os }}' path: 'artifacts/docs/' - Merge: - runs-on: ubuntu-latest - needs: build - steps: - - name: Merge Artifacts - uses: actions/upload-artifact/merge@v7 - with: - name: nuget - pattern: nuget-* Publish: - needs: Merge + needs: build uses: RocketSurgeonsGuild/actions/.github/workflows/publish-nuget.yml@v0.3.19 secrets: RSG_NUGET_API_KEY: '${{ secrets.RSG_NUGET_API_KEY }}'