From 43aba508db4d2ad0ceff50652af8e1627cc1f9ab Mon Sep 17 00:00:00 2001 From: anejolov <118720241+anejolov@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:12:50 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57dc4b9..5b15e01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,11 +34,21 @@ jobs: "@ Set-Content -Path "sfx_config.txt" -Value $SFXConfig - $exeName = "WindeckHelper_${{ env.RELEASE_VERSION }}.exe" + $exeName = "WindeckHelper_${{ github.event.release.tag_name }}.exe" & "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -z"sfx_config.txt" $exeName * echo "EXE_NAME=$exeName" >> $GITHUB_ENV shell: powershell + - name: Verify EXE exists + run: | + if (Test-Path ${{ env.EXE_NAME }}) { + Write-Host "EXE file found: ${{ env.EXE_NAME }}" + } else { + Write-Host "EXE file not found!" + exit 1 + } + shell: powershell + - name: Upload EXE to Release Assets uses: softprops/action-gh-release@v2 with: