From 88db36eb44e44510a369292fbb4928b65971580d Mon Sep 17 00:00:00 2001 From: Peter Giacomo Lombardo Date: Tue, 28 May 2024 15:13:50 +0200 Subject: [PATCH] CI: Store Artifacts across builds (#167) --- .github/workflows/build.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dfe256aa..fbed0630 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,12 +67,31 @@ jobs: - name: "Dotnet Cake Pack" run: dotnet cake --target=Pack shell: pwsh + - name: "Upload NuGet packages" + uses: actions/upload-artifact@v4 + with: + name: nuget-packages-${{ matrix.dotnet-version }} + path: ./Artifacts/*.nupkg + publish: needs: build runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4.1.6 + - name: "Download NuGet packages" + uses: actions/download-artifact@v4 + with: + name: nuget-packages-6.0.x + path: ./Artifacts + - name: "Download NuGet packages" + uses: actions/download-artifact@v4 + with: + name: nuget-packages-7.0.x + path: ./Artifacts + - name: "Download NuGet packages" + uses: actions/download-artifact@v4 + with: + name: nuget-packages-8.0.x + path: ./Artifacts - name: Push to NuGet if: github.event_name == 'release'