diff --git a/PSDeploy/PSDeployScripts/PSGalleryModule.ps1 b/PSDeploy/PSDeployScripts/PSGalleryModule.ps1 index a618b60..c1a235a 100644 --- a/PSDeploy/PSDeployScripts/PSGalleryModule.ps1 +++ b/PSDeploy/PSDeployScripts/PSGalleryModule.ps1 @@ -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. @@ -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 } diff --git a/Tests/artifacts/DeploymentsPSGalleryModule.psdeploy.ps1 b/Tests/artifacts/DeploymentsPSGalleryModule.psdeploy.ps1 index 7e732d8..fc74dd9 100644 --- a/Tests/artifacts/DeploymentsPSGalleryModule.psdeploy.ps1 +++ b/Tests/artifacts/DeploymentsPSGalleryModule.psdeploy.ps1 @@ -5,6 +5,7 @@ Deploy TestModule { Tagged Testing WithOptions @{ ApiKey = '0c3e374b-49a3-4b05-a597-fd45773a4fb6' + SkipAutomaticTags = $true } } -} \ No newline at end of file +}