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:
@@ -1,11 +1,8 @@
|
|||||||
name: Build SFX EXE on Release and Deploy to GitHub Pages
|
name: Build SFX EXE on Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -37,44 +34,14 @@ jobs:
|
|||||||
"@
|
"@
|
||||||
Set-Content -Path "sfx_config.txt" -Value $SFXConfig
|
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 *
|
& "C:\Program Files\WinRAR\WinRAR.exe" a -r -sfx -z"sfx_config.txt" $exeName *
|
||||||
|
|
||||||
echo "EXE_NAME=$exeName" >> $GITHUB_ENV
|
echo "EXE_NAME=$exeName" >> $GITHUB_ENV
|
||||||
Write-Host "EXE file created at $exeName"
|
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Verify EXE exists
|
- name: Upload EXE to Release
|
||||||
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
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ${{ env.EXE_NAME }}
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user