fix: use different condition for windows

This commit is contained in:
Bart van der Braak 2024-02-26 00:10:26 +01:00
parent 5678fb6469
commit 2c1d33031a

View file

@ -127,11 +127,11 @@ jobs:
dst="keyweave-${{ matrix.target }}"
mkdir -p "$dst" dist
cp "$bin" "$dst/"
if [[ ${{ !startsWith(matrix.name, 'windows') }} ]] ; then
if [[ "${{ matrix.name }}" == windows-* ]] ; then
mv "$dst/keyweave${ext}" dist/keyweave-${{ matrix.target }}.exe
else
tar cavf "$dst.tar.xz" "$dst"
mv "$dst.tar.xz" dist/
else
mv "$dst/keyweave${ext}" dist/keyweave-${{ matrix.target }}.exe
fi
- uses: actions/upload-artifact@v4
@ -166,7 +166,7 @@ jobs:
run: |
unzip dist-*.zip
- name: Unzip and Checksums with SHA512 and SHA256
- name: Checksums with SHA512 and SHA256
run: |
sha512sum keyweave-* | tee SHA512SUMS
sha256sum keyweave-* | tee SHA256SUMS