From dc4bc8e163d806ac814c6a5536769e78571f7339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sun, 12 May 2024 01:27:54 +0200 Subject: [PATCH] fix: release build (#1478) --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 603fcc7e9..89bd013fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,10 @@ jobs: $ErrorActionPreference = "Stop" $BuildVersion = Get-Content VERSION $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") { Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch" .\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"