1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-26 03:27:30 +00:00

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

View File

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