From 90602892975626cfa91cc0232f1cc3f1509bdfad Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 23 Jun 2025 04:57:38 -0500 Subject: [PATCH] refactor: build and upload pure windows binary immediately --- .github/workflows/build.yml | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f671c6..1ee612a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,27 @@ jobs: - name: Install Task 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 uses: actions/setup-dotnet@v4 with: @@ -61,34 +82,13 @@ jobs: wix extension add WixToolset.Util.wixext wix extension add WixToolset.UI.wixext - - name: Build Windows Binary - run: task build - - name: Build MSI 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 shell: pwsh 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 uses: actions/upload-artifact@v4 with: