Skip to content
Open
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
6 changes: 6 additions & 0 deletions PSDeploy/PSDeployScripts/PSGalleryModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

.PARAMETER Deployment
Deployment to run

.PARAMETER SkipAutomaticTags
Removes commands and resources from being included as tags. Skips automatically adding tags to a module.

.PARAMETER ApiKey
API Key used to authenticate to PowerShell repository.
Expand Down Expand Up @@ -49,6 +52,9 @@ foreach($deploy in $Deployment) {
Repository = $target
Verbose = $VerbosePreference
}
if ($SkipAutomaticTags) {
$params['SkipAutomaticTags'] = $deploy.DeploymentOptions.SkipAutomaticTags
}
if ($ApiKey) {
$params['NuGetApiKey'] = $deploy.DeploymentOptions.ApiKey
}
Expand Down
3 changes: 2 additions & 1 deletion Tests/artifacts/DeploymentsPSGalleryModule.psdeploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Deploy TestModule {
Tagged Testing
WithOptions @{
ApiKey = '0c3e374b-49a3-4b05-a597-fd45773a4fb6'
SkipAutomaticTags = $true
}
}
}
}