diff --git a/.github/workflows/build-client.yml b/.github/workflows/build-client.yml index 040da46..64f1164 100644 --- a/.github/workflows/build-client.yml +++ b/.github/workflows/build-client.yml @@ -58,15 +58,17 @@ jobs: fi shell: bash - - name: Clean previous builds + - name: Clean previous builds (Windows) + if: matrix.os == 'windows-latest' working-directory: ./Client - run: | - if [ "${{ matrix.os }}" = "windows-latest" ]; then - if exist dist rmdir /s /q dist - else - rm -rf dist - fi - shell: ${{ matrix.os == 'windows-latest' && 'cmd' || 'bash' }} + run: if exist dist rmdir /s /q dist + shell: cmd + + - name: Clean previous builds (Unix) + if: matrix.os != 'windows-latest' + working-directory: ./Client + run: rm -rf dist + shell: bash - name: Build for ${{ matrix.os }} working-directory: ./Client