Skip to content

Commit 01ebdc7

Browse files
authored
Merge pull request #72 from geekwhocodes/hotfix/build-scripts
fixed build and publish script
2 parents 4a18212 + 76e9bae commit 01ebdc7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.build/Publish.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ param (
33
[Parameter(Mandatory = $true, HelpMessage = "PowerShell Gallery Api key")]
44
[ValidateNotNull()]
55
[string]
6-
$NuGetApiKey
6+
$NuGetApiKey,
7+
[Parameter(Mandatory = $true, HelpMessage = "Archive Path")]
8+
[ValidateNotNull()]
9+
[string]
10+
$ArchivePath
711
)
812
Begin {
913
Write-Output "Publishing module to PowerShell Gallery"
@@ -12,7 +16,7 @@ Begin {
1216
Process {
1317
try {
1418
#TODO: code sign
15-
Publish-Module -Path ./SimplePSLogger -NuGetApiKey $NuGetApiKey`
19+
Publish-Module -Path $ArchivePath -NuGetApiKey $NuGetApiKey`
1620
-ProjectUri "https://github.com/geekwhocodes/simple-ps-logger"`
1721
-Tags "powershell, powershellcore, logging, logger, simplelogging, simplelogger, pscore, log"`
1822
-LicenseUri "https://github.com/geekwhocodes/simple-ps-logger/blob/master/LICENSE"`

.build/build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
$TempArchiveDir = Join-Path $([system.io.path]::GetTempPath()) -ChildPath "SimplePSLoggerArchive"
2+
$TempArchiveDir = Join-Path $([system.io.path]::GetTempPath()) -ChildPath "SimplePSLogger"
33

44
if ($(Test-Path -Path $TempArchiveDir)) {
55
Remove-Item -Path $TempArchiveDir -Recurse -Force

0 commit comments

Comments
 (0)