From d0a034ee9e313802146f2514dbe9e9bca0b6899a Mon Sep 17 00:00:00 2001 From: anejolov <118720241+anejolov@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:26:05 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 39 +++----------------------------------- 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92d35a0..ecaffdf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,8 @@ -name: Build SFX EXE on Release and Deploy to GitHub Pages +name: Build SFX EXE on Release on: release: types: [published] - push: - branches: - - main jobs: build: @@ -37,44 +34,14 @@ jobs: "@ Set-Content -Path "sfx_config.txt" -Value $SFXConfig - $exeName = "WindeckHelper_${{ github.event.release.tag_name }}.exe" + $exeName = "WindeckHelper_${{ env.RELEASE_VERSION }}.exe" & "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -z"sfx_config.txt" $exeName * - echo "EXE_NAME=$exeName" >> $GITHUB_ENV - Write-Host "EXE file created at $exeName" 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 + - name: Upload EXE to Release uses: softprops/action-gh-release@v2 with: files: ${{ env.EXE_NAME }} - tag_name: ${{ github.event.release.tag_name }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - pages: - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Setup Pages - uses: actions/configure-pages@v3 - - - name: Deploy to GitHub Pages - run: | - # Добавьте здесь ваш код для деплоя на Pages - echo "Deploying to GitHub Pages" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}