mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-06 11:15:15 -06:00
refactor: build and upload pure windows binary immediately
This commit is contained in:
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@@ -48,6 +48,27 @@ jobs:
|
|||||||
- name: Install Task
|
- name: Install Task
|
||||||
uses: arduino/setup-task@v2
|
uses: arduino/setup-task@v2
|
||||||
|
|
||||||
|
- name: Build Windows Binary
|
||||||
|
run: task build
|
||||||
|
|
||||||
|
- name: Get Version
|
||||||
|
id: get_version_win
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$version = Get-Content VERSION.txt
|
||||||
|
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||||
|
|
||||||
|
- name: Rename Windows Binary with Version
|
||||||
|
shell: pwsh
|
||||||
|
run: Rename-Item -Path bin/HATray.exe -NewName "HATray-windows-amd64-$env:VERSION.exe"
|
||||||
|
|
||||||
|
- name: Upload Windows Binary
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: HATray-windows-amd64-${{ env.VERSION }}.exe
|
||||||
|
path: bin/HATray-windows-amd64-${{ env.VERSION }}.exe
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Set up .NET for WiX
|
- name: Set up .NET for WiX
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
@@ -61,34 +82,13 @@ jobs:
|
|||||||
wix extension add WixToolset.Util.wixext
|
wix extension add WixToolset.Util.wixext
|
||||||
wix extension add WixToolset.UI.wixext
|
wix extension add WixToolset.UI.wixext
|
||||||
|
|
||||||
- name: Build Windows Binary
|
|
||||||
run: task build
|
|
||||||
|
|
||||||
- name: Build MSI
|
- name: Build MSI
|
||||||
run: task package
|
run: task package
|
||||||
|
|
||||||
- name: Get Version
|
|
||||||
id: get_version_win
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
$version = Get-Content VERSION.txt
|
|
||||||
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Append
|
|
||||||
|
|
||||||
- name: Rename Windows Binary with Version
|
|
||||||
shell: pwsh
|
|
||||||
run: Rename-Item -Path bin/HATray.exe -NewName "HATray-windows-amd64-$env:VERSION.exe"
|
|
||||||
|
|
||||||
- name: Rename MSI with Version
|
- name: Rename MSI with Version
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: Rename-Item -Path bin/HATray.msi -NewName "HATray-windows-amd64-$env:VERSION.msi"
|
run: Rename-Item -Path bin/HATray.msi -NewName "HATray-windows-amd64-$env:VERSION.msi"
|
||||||
|
|
||||||
- name: Upload Windows Binary
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: HATray-windows-amd64-${{ env.VERSION }}.exe
|
|
||||||
path: bin/HATray-windows-amd64-${{ env.VERSION }}.exe
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
- name: Upload MSI
|
- name: Upload MSI
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user