From 9ad9cb7f1e4624ec98b6efeded65f032a8820875 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Wed, 10 Jun 2020 12:20:00 -0400 Subject: [PATCH] Update Build Path for Artifact Utilization --- ZertoApiWrapper.build.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ZertoApiWrapper.build.ps1 b/ZertoApiWrapper.build.ps1 index 8069b4c..f41483f 100644 --- a/ZertoApiWrapper.build.ps1 +++ b/ZertoApiWrapper.build.ps1 @@ -1,7 +1,7 @@ #Requires -Modules 'InvokeBuild' $version = "{0}" -f $(Get-Content .\version.txt) -$moduleOutPath = "{0}\temp\{1}\ZertoApiWrapper" -f $BuildRoot, $version +$moduleOutPath = "{0}\temp\ZertoApiWrapper\{1}" -f $BuildRoot, $version #Define the default task task . build @@ -193,7 +193,8 @@ task CreateArtifacts CleanPublish, CleanTemp, AnalyzeBuiltFiles, BuiltFileTests, if (-not $(Test-Path "$BuildRoot\publish")) { New-Item -Path $BuildRoot -Name "publish" -ItemType Directory } - Compress-Archive -Path .\temp\* -DestinationPath .\publish\ZertoApiWrapper.zip + $CompressionPath = Split-Path -Path $moduleOutPath -Parent + Compress-Archive -Path $CompressionPath -DestinationPath .\publish\ZertoApiWrapper.zip #ImportBuiltModule #(Get-Module ZertoApiWrapper).ReleaseNotes | Add-Content .\publish\release-notes.txt #(Get-Module ZertoApiWrapper).Version.ToString() | Add-Content .\publish\release-version.txt