From f6c6f93b1b7026c81088f3d387b1a4520b1d9d8b Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Wed, 13 Nov 2019 10:50:57 +0900 Subject: [PATCH] ci: Remove nesting from within release archives --- .github/workflows/workflow.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 115d95ec..0b11aa69 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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'