Skip to content

Commit

Permalink
Merge pull request #142 from vitruv-tools/fix-build-staging
Browse files Browse the repository at this point in the history
Fix build staging
  • Loading branch information
larsk21 authored Dec 2, 2024
2 parents fddb5bc + efe3513 commit ae7c603
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit ae7c603

Please sign in to comment.