From 95515fba28ab76408ffbf8c7d0323815d1bf6590 Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Fri, 6 Sep 2024 17:07:47 -0700 Subject: [PATCH] The name of the artifact to download changed Signed-off-by: James Sturtevant --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af89225..f5c16d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,11 +34,13 @@ jobs: run: dotnet test --no-build --verbosity normal - name: Pack run: dotnet pack -c Release /p:BuildNumber=${{ github.run_number }} + # must use windows to generate package https://github.com/bytecodealliance/componentize-dotnet/issues/41 + # only need one package published https://github.com/actions/upload-artifact?tab=readme-ov-file#not-uploading-to-the-same-artifact - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: nuget-packages-${{ matrix.os }} + name: nuget-packages path: artifacts/*.nupkg if-no-files-found: error - if: ${{ matrix.dotnet == '8.x' }} # only need one package published https://github.com/actions/upload-artifact?tab=readme-ov-file#not-uploading-to-the-same-artifact + if: ${{ matrix.dotnet == '8.x' && matrix.os == 'windows-latest' }}