From 348d9e20a90489b34ac470c6b895f6eb1931cae5 Mon Sep 17 00:00:00 2001 From: anejolov <118720241+anejolov@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:21:50 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b15e01..92d35a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,11 @@ -name: Build SFX EXE on Release +name: Build SFX EXE on Release and Deploy to GitHub Pages on: release: types: [published] + push: + branches: + - main jobs: build: @@ -36,7 +39,9 @@ jobs: $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 + Write-Host "EXE file created at $exeName" shell: powershell - name: Verify EXE exists @@ -56,3 +61,20 @@ jobs: 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 }}