From 45a74fdb7f0b08b28b49a726bb6377e8a73cd92c Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Mon, 19 Apr 2021 19:01:52 +1000 Subject: [PATCH] CI: Output artifacts in single, flat directory. Nested directories caused issues with promu checksum output, causing user checks of the sha265sums.txt file to fail as the filenames did not match. Signed-off-by: Ben Reedy --- appveyor.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 9122d4fa..6afbe874 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -45,7 +45,7 @@ build_script: make crossbuild # GH requires all files to have different names, so add version/arch to differentiate foreach($Arch in "amd64","386") { - Rename-Item output\$Arch\windows_exporter.exe -NewName windows_exporter-$Version-$Arch.exe + Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe } after_build: @@ -60,14 +60,14 @@ after_build: $MSIVersion = $env:APPVEYOR_REPO_TAG_NAME -replace '^v?([0-9\.]+).*$','$1' foreach($Arch in "amd64","386") { Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch" - .\installer\build.ps1 -PathToExecutable .\output\$Arch\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch" - Move-Item installer\Output\windows_exporter-$MSIVersion-$Arch.msi output\$Arch\ + .\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch" + Move-Item installer\Output\windows_exporter-$MSIVersion-$Arch.msi output\ } - promu checksum output\ artifacts: - name: Artifacts - path: output\**\* + path: output\* deploy: - provider: GitHub