mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-28 07:36:37 +00:00
fix: release build again (#1480)
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -68,6 +68,8 @@ jobs:
|
|||||||
Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
|
Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Get-ChildItem -Path output
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -75,21 +77,18 @@ jobs:
|
|||||||
path: output\windows_exporter-*.exe
|
path: output\windows_exporter-*.exe
|
||||||
|
|
||||||
- name: Build Release Artifacts
|
- name: Build Release Artifacts
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
$BuildVersion = Get-Content VERSION
|
$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") {
|
foreach($Arch in "amd64", "arm64") {
|
||||||
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
Write-Host "Building windows_exporter $BuildVersion 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 $BuildVersion -Arch "$Arch"
|
||||||
Move-Item installer\windows_exporter-$MSIVersion-$Arch.msi output\
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Move-Item installer\*.msi output\
|
||||||
|
Get-ChildItem -Path output\
|
||||||
|
|
||||||
promu checksum output\
|
promu checksum output\
|
||||||
|
|
||||||
- name: Build Docker Artifacts
|
- name: Build Docker Artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user