diff --git a/.build/Publish.ps1 b/.build/Publish.ps1 index 14466e7..8ce513f 100644 --- a/.build/Publish.ps1 +++ b/.build/Publish.ps1 @@ -3,7 +3,11 @@ param ( [Parameter(Mandatory = $true, HelpMessage = "PowerShell Gallery Api key")] [ValidateNotNull()] [string] - $NuGetApiKey + $NuGetApiKey, + [Parameter(Mandatory = $true, HelpMessage = "Archive Path")] + [ValidateNotNull()] + [string] + $ArchivePath ) Begin { Write-Output "Publishing module to PowerShell Gallery" @@ -12,7 +16,7 @@ Begin { Process { try { #TODO: code sign - Publish-Module -Path ./SimplePSLogger -NuGetApiKey $NuGetApiKey` + Publish-Module -Path $ArchivePath -NuGetApiKey $NuGetApiKey` -ProjectUri "https://github.com/geekwhocodes/simple-ps-logger"` -Tags "powershell, powershellcore, logging, logger, simplelogging, simplelogger, pscore, log"` -LicenseUri "https://github.com/geekwhocodes/simple-ps-logger/blob/master/LICENSE"` diff --git a/.build/build.ps1 b/.build/build.ps1 index 2f4b74c..2ad6c27 100644 --- a/.build/build.ps1 +++ b/.build/build.ps1 @@ -1,5 +1,5 @@ -$TempArchiveDir = Join-Path $([system.io.path]::GetTempPath()) -ChildPath "SimplePSLoggerArchive" +$TempArchiveDir = Join-Path $([system.io.path]::GetTempPath()) -ChildPath "SimplePSLogger" if ($(Test-Path -Path $TempArchiveDir)) { Remove-Item -Path $TempArchiveDir -Recurse -Force