mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-04 09:36:35 +00:00
fix: release build (#1478)
This commit is contained in:
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -77,6 +77,10 @@ jobs:
|
|||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
$BuildVersion = Get-Content VERSION
|
$BuildVersion = Get-Content VERSION
|
||||||
$TagName = $env:GITHUB_REF -replace 'refs/tags/', ''
|
$TagName = $env:GITHUB_REF -replace 'refs/tags/', ''
|
||||||
|
|
||||||
|
# The MSI version is not semver compliant, so just take the numerical parts
|
||||||
|
$MSIVersion = $TagName -replace '^v?([0-9\.]+).*$','$1'
|
||||||
|
|
||||||
foreach($Arch in "amd64", "arm64") {
|
foreach($Arch in "amd64", "arm64") {
|
||||||
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
||||||
.\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"
|
.\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"
|
||||||
|
|||||||
Reference in New Issue
Block a user