ci: Remove nesting from within release archives

This commit is contained in:
Matan Kushner 2019-11-13 10:50:57 +09:00
parent 9f0862efb8
commit f6c6f93b1b
No known key found for this signature in database
GPG Key ID: 4B98C3A8949CA8A4
1 changed files with 8 additions and 4 deletions

View File

@ -216,14 +216,18 @@ jobs:
- name: Prepare build artifacts [Windows]
if: matrix.os == 'windows-latest'
run: |
strip target/${{ matrix.target }}/release/starship.exe
7z a ${{ matrix.name }} target/${{ matrix.target }}/release/starship.exe
cd target/${{ matrix.target }}/release
strip starship.exe
7z a ../../../${{ matrix.name }} starship.exe
cd -
- name: Prepare build artifacts [-nix]
if: matrix.os != 'windows-latest'
run: |
strip target/${{ matrix.target }}/release/starship
tar czvf ${{ matrix.name }} target/${{ matrix.target }}/release/starship
cd target/${{ matrix.target }}/release
strip starship
tar czvf ../../../${{ matrix.name }} starship
cd -
- name: Generate release notes
if: matrix.os == 'ubuntu-latest'