mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +02:00
installer: fail the package build when wix fails or an MSI is missing (#2727)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -335,6 +335,17 @@ jobs:
|
||||
- name: Generate checksums
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
$Version = Get-Content output\VERSION
|
||||
|
||||
# Checksum only a complete set of artifacts.
|
||||
foreach($Arch in "amd64", "arm64") {
|
||||
foreach($Extension in "exe", "msi") {
|
||||
$Artifact = "output\windows_exporter-$Version-$Arch.$Extension"
|
||||
if (-not (Test-Path -PathType Leaf $Artifact)) {
|
||||
throw "Missing release artifact $Artifact"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$checksums = Get-ChildItem -Path output -File |
|
||||
Where-Object { $_.Name -match '^windows_exporter-.*\.(exe|msi)$' } |
|
||||
|
||||
Reference in New Issue
Block a user