diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec1732da..2d716b72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,8 +49,13 @@ jobs: --update-snapshots --no-transfer-progress - - 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