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'