Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .build/Publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion .build/build.ps1
Original file line number Diff line number Diff line change
@@ -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
Expand Down