diff --git a/build/psf-build.ps1 b/build/psf-build.ps1 index c9641ca..8763cd0 100644 --- a/build/psf-build.ps1 +++ b/build/psf-build.ps1 @@ -7,6 +7,8 @@ Insert any build steps you may need to take before publishing it here. param ( $ApiKey, + $Repository = 'PSGallery', + $WorkingDirectory = $env:SYSTEM_DEFAULTWORKINGDIRECTORY ) @@ -81,4 +83,4 @@ $fileData = $fileData.Replace('""', ($text -join "`n`n") #endregion Update the psm1 file # Publish to Gallery -Publish-PSFModule -Path "$($publishDir.FullName)\PSUtil" -ApiKey $ApiKey \ No newline at end of file +Publish-PSFModule -Path "$($publishDir.FullName)\PSUtil" -ApiKey $ApiKey -Repository $Repository \ No newline at end of file diff --git a/build/vsts-build.ps1 b/build/vsts-build.ps1 index 6bc1aa2..d9d18d5 100644 --- a/build/vsts-build.ps1 +++ b/build/vsts-build.ps1 @@ -7,6 +7,8 @@ Insert any build steps you may need to take before publishing it here. param ( $ApiKey, + $Repository = 'PSGallery', + $WorkingDirectory = $env:SYSTEM_DEFAULTWORKINGDIRECTORY ) @@ -81,4 +83,4 @@ $fileData = $fileData.Replace('""', ($text -join "`n`n") #endregion Update the psm1 file # Publish to Gallery -Publish-Module -Path "$($publishDir.FullName)\PSUtil" -NuGetApiKey $ApiKey -Force \ No newline at end of file +Publish-Module -Path "$($publishDir.FullName)\PSUtil" -NuGetApiKey $ApiKey -Force -Repository $Repository \ No newline at end of file