Skip to content

Commit

Permalink
Update zip file name in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zel9278 committed Jan 21, 2024
1 parent 0485a5c commit 823df74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ jobs:
cp target/${{ matrix.target }}/release/jbox target/${{ matrix.target }}/zip
cp -r assets target/${{ matrix.target }}/zip
cd target/${{ matrix.target }}/zip
zip -r ../target/${{ matrix.target }}.zip .
zip -r ../${{ matrix.target }}.zip .
- name: zip for windows
if: matrix.target == 'x86_64-pc-windows-msvc' || matrix.target == 'x86_64-pc-windows-gnu'
run: |
mkdir -p target/${{ matrix.target }}/zip
cp target/${{ matrix.target }}/release/jbox.exe target/${{ matrix.target }}/zip
cp -r assets target/${{ matrix.target }}/zip
cd target/${{ matrix.target }}/zip
powershell Compress-Archive -Path "*" -DestinationPath ../target/${{ matrix.target }}.zip
powershell Compress-Archive -Path "*" -DestinationPath ../${{ matrix.target }}.zip
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: ${{ matrix.target }}
Expand Down

0 comments on commit 823df74

Please sign in to comment.