From bd5565e59f3b5dae927fb165134c9a3d94bb7df4 Mon Sep 17 00:00:00 2001 From: larsk21 <57503246+larsk21@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:11:50 +0100 Subject: [PATCH 1/2] fix build result staging --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 207bca0a..f4416934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: --no-transfer-progress - name: Stage build results - run: mkdir staging-${{ matrix.os }} && cp **/target/*.jar staging-${{ matrix.os }}/ + run: mkdir staging-${{ matrix.os }} && find . -path '*/target/*.jar' -exec cp {} staging-${{ matrix.os }}/ \; - name: Upload build results uses: actions/upload-artifact@v3.1.3 From af105aeda53aec5a46f80bf4399e6540b70d5e5d Mon Sep 17 00:00:00 2001 From: larsk21 <57503246+larsk21@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:54:21 +0100 Subject: [PATCH 2/2] add Windows-specific build result staging --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4416934..a7b575e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,9 +40,14 @@ jobs: --update-snapshots --no-transfer-progress - - name: Stage build results + - name: Stage build results (Unix) + if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest' run: mkdir staging-${{ matrix.os }} && find . -path '*/target/*.jar' -exec cp {} staging-${{ matrix.os }}/ \; + - name: Stage build results (Windows) + if: matrix.os == 'windows-latest' + run: mkdir staging-${{ matrix.os }} && gci -Path . -Recurse -Include *.jar |? { $_.FullName -like '*\target\*.jar' } |% { cp $_.FullName staging-${{ matrix.os }} } + - name: Upload build results uses: actions/upload-artifact@v3.1.3 with: