diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd7215f..c11fb98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,10 +84,13 @@ jobs: - name: Overwrite Unsigned Executable if: runner.os == 'windows' + shell: pwsh # Use PowerShell Core if you want to explicitly use it run: | - if exist src\dist\Anonymizer_${{ env.version }}\Anonymizer_${{ env.version }}.exe del src\dist\Anonymizer_${{ env.version }}\Anonymizer_${{ env.version }}.exe - move src\dist\signed\Anonymizer_${{ env.version }}.exe src\dist\Anonymizer_${{ env.version }}\Anonymizer_${{ env.version }}.exe - + if (Test-Path "src\dist\Anonymizer_${{ env.version }}\Anonymizer_${{ env.version }}.exe") { + Remove-Item "src\dist\Anonymizer_${{ env.version }}\Anonymizer_${{ env.version }}.exe" + } + Move-Item -Path "src\dist\signed\Anonymizer_${{ env.version }}.exe" -Destination "src\dist\Anonymizer_${{ env.version }}\Anonymizer_${{ env.version }}.exe" + - name: Upload Artifact for ${{ matrix.os }} uses: actions/upload-artifact@v4 with: