Skip to content

Commit

Permalink
Merge pull request #72 from geekwhocodes/hotfix/build-scripts
Browse files Browse the repository at this point in the history
fixed build and publish script
  • Loading branch information
geekwhocodes authored Jul 27, 2020
2 parents 4a18212 + 76e9bae commit 01ebdc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
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

0 comments on commit 01ebdc7

Please sign in to comment.