mirror of
https://github.com/anejolov/WinDeckHelper.git
synced 2026-06-13 04:05:06 +03:00
Update main.yml
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user