Skip to content

Commit

Permalink
Update zip file destination path in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zel9278 committed Jan 21, 2024
1 parent eee09d6 commit 0485a5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +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 ../release/jbox-${{ matrix.target }}.zip .
zip -r ../target/${{ 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 ../release/jbox-${{ matrix.target }}.zip
- run: ${{ (!matrix.os && matrix.use-cross) && 'cross' || 'cargo' }} build --locked --release --target ${{ matrix.target }}
powershell Compress-Archive -Path "*" -DestinationPath ../target/${{ matrix.target }}.zip
- uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: ${{ matrix.target }}
Expand Down

0 comments on commit 0485a5c

Please sign in to comment.