From 72c0c10cde721e980724fe86bb890523fd8f3f46 Mon Sep 17 00:00:00 2001 From: larsk21 <57503246+larsk21@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:15:33 +0100 Subject: [PATCH] fix build result staging --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16bb2463..d222ee18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,8 +51,13 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Stage build results - run: mkdir staging-${{ matrix.os }} && cp **/target/*.jar staging-${{ matrix.os }}/ + - 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