Skip to content

Commit a11b684

Browse files
Merge pull request #71 from PowershellFrameworkCollective/Development
fixing publishing repo
2 parents 81d9b8a + b15cf09 commit a11b684

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build/psf-build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Insert any build steps you may need to take before publishing it here.
77
param (
88
$ApiKey,
99

10+
$Repository = 'PSGallery',
11+
1012
$WorkingDirectory = $env:SYSTEM_DEFAULTWORKINGDIRECTORY
1113
)
1214

@@ -81,4 +83,4 @@ $fileData = $fileData.Replace('"<compile code into here>"', ($text -join "`n`n")
8183
#endregion Update the psm1 file
8284

8385
# Publish to Gallery
84-
Publish-PSFModule -Path "$($publishDir.FullName)\PSUtil" -ApiKey $ApiKey
86+
Publish-PSFModule -Path "$($publishDir.FullName)\PSUtil" -ApiKey $ApiKey -Repository $Repository

build/vsts-build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Insert any build steps you may need to take before publishing it here.
77
param (
88
$ApiKey,
99

10+
$Repository = 'PSGallery',
11+
1012
$WorkingDirectory = $env:SYSTEM_DEFAULTWORKINGDIRECTORY
1113
)
1214

@@ -81,4 +83,4 @@ $fileData = $fileData.Replace('"<compile code into here>"', ($text -join "`n`n")
8183
#endregion Update the psm1 file
8284

8385
# Publish to Gallery
84-
Publish-Module -Path "$($publishDir.FullName)\PSUtil" -NuGetApiKey $ApiKey -Force
86+
Publish-Module -Path "$($publishDir.FullName)\PSUtil" -NuGetApiKey $ApiKey -Force -Repository $Repository

0 commit comments

Comments
 (0)