Skip to content

Commit

Permalink
retry overwrite with powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevans committed Nov 6, 2024
1 parent dc57116 commit fc75e99
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fc75e99

Please sign in to comment.