Skip to content

Commit

Permalink
Fixed ZIP creation so it shouldn't include folders from the build
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgewareRoad committed Jun 21, 2024
1 parent 70171bc commit 96270bd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ jobs:
- name: Package native code for release
run: |
sudo apt install zip -q
ls build/native/nativeCompile
mkdir dist
zip -qq -r dist/trivysummary-linux-amd64-${{ steps.read-properties.outputs.trivysummary_version }}.zip . -i build/native/nativeCompile/*
cd build/native/nativeCompile
ls
zip -qq -r ../../../dist/trivysummary-linux-amd64-${{ steps.read-properties.outputs.trivysummary_version }}.zip . -i *
cd ../../..
- name: Upload release artefact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -100,9 +102,12 @@ jobs:
run: gradle clean nativeCompile
- name: Package native code for release
run: |
ls build/native/nativeCompile
mkdir dist
tar -a -c -f dist/trivysummary-windows-amd64-${{ steps.read-properties.outputs.trivysummary_version }}.zip build/native/nativeCompile/*.*
cd build/native/nativeCompile
rm *.args
ls
tar -a -c -f ../../../dist/trivysummary-windows-amd64-${{ steps.read-properties.outputs.trivysummary_version }}.zip *.*
cd ../../..
- name: Upload release artefact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 96270bd

Please sign in to comment.