mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-06 05:15:17 -06:00
fix: fix MSI rename step, raise error on missing artifacts
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -33,6 +33,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: HATray-linux-amd64-${{ env.VERSION }}
|
name: HATray-linux-amd64-${{ env.VERSION }}
|
||||||
path: bin/HATray-linux-amd64-${{ env.VERSION }}
|
path: bin/HATray-linux-amd64-${{ env.VERSION }}
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@@ -79,20 +80,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Rename MSI with Version
|
- name: Rename MSI with Version
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: Rename-Item -Path bin/HATray.msi -NewName "HATray-windows-amd64-$env:VERSION.msi"
|
||||||
$msi = Get-ChildItem -Path bin -Filter "HATray-*.msi" | Select-Object -First 1
|
|
||||||
if ($msi) {
|
|
||||||
Rename-Item -Path $msi.FullName -NewName "HATray-windows-amd64-$env:VERSION.msi"
|
|
||||||
}
|
|
||||||
|
|
||||||
- name: Upload Windows Binary
|
- name: Upload Windows Binary
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: HATray-windows-amd64-${{ env.VERSION }}.exe
|
name: HATray-windows-amd64-${{ env.VERSION }}.exe
|
||||||
path: bin/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:
|
||||||
name: HATray-windows-amd64-${{ env.VERSION }}.msi
|
name: HATray-windows-amd64-${{ env.VERSION }}.msi
|
||||||
path: bin/HATray-windows-amd64-${{ env.VERSION }}.msi
|
path: bin/HATray-windows-amd64-${{ env.VERSION }}.msi
|
||||||
|
if-no-files-found: error
|
||||||
Reference in New Issue
Block a user