@@ -58,29 +58,29 @@ $publishToLocal = test-path $repositoryLocation
58
58
if (($scope -eq ' All' ) -or $publishToLocal ) {
59
59
# If we publish 'All' or to local folder, publish AzureRM.Profile first, becasue it is the common dependency
60
60
Write-Host " Publishing profile module"
61
- Publish-Module - Path " $resourceManagerRootFolder \AzureRM.Profile" - NuGetApiKey $apiKey - Repository $repoName
61
+ Publish-Module - Path " $resourceManagerRootFolder \AzureRM.Profile" - NuGetApiKey $apiKey - Repository $repoName - Tags ( " Azure " )
62
62
Write-Host " Published profile module"
63
63
}
64
64
65
65
if (($scope -eq ' All' ) -or ($scope -eq ' ServiceManagement' )) {
66
66
$modulePath = " $packageFolder \$buildConfig \ServiceManagement\Azure"
67
67
# Publish Azure module
68
68
Write-Host " Publishing ServiceManagement(aka Azure) module from $modulePath "
69
- Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
69
+ Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName - Tags ( " Azure " )
70
70
}
71
71
72
72
if (($scope -eq ' All' ) -or ($scope -eq ' AzureStorage' )) {
73
73
$modulePath = " $packageFolder \$buildConfig \ServiceManagement\Azure\Azure.Storage"
74
74
# Publish AzureStorage module
75
75
Write-Host " Publishing AzureStorage module from $modulePath "
76
- Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
76
+ Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName - Tags ( " Azure " )
77
77
}
78
78
79
79
if (($scope -eq ' All' ) -or ($scope -eq ' AzureRM' )) {
80
80
# Publish AzureRM module
81
81
$modulePath = " $PSScriptRoot \AzureRM"
82
82
Write-Host " Publishing AzureRM module from $modulePath "
83
- Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
83
+ Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName - Tags ( " Azure " )
84
84
Write-Host " Published Azure module"
85
85
}
86
86
@@ -92,15 +92,15 @@ if ($scope -eq 'All') {
92
92
if (($module.Name -ne " AzureRM.Profile" ) -and ($module.Name -ne " Azure.Storage" )) {
93
93
$modulePath = $module.FullName
94
94
Write-Host " Publishing $module module from $modulePath "
95
- Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
95
+ Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName - Tags ( " Azure " )
96
96
Write-Host " Published $module module"
97
97
}
98
98
}
99
99
} elseif ($scope -ne ' AzureRM' ) {
100
100
$modulePath = Join-Path $resourceManagerRootFolder " AzureRM.$scope "
101
101
if (Test-Path $modulePath ) {
102
102
Write-Host " Publishing $scope module from $modulePath "
103
- Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName
103
+ Publish-Module - Path $modulePath - NuGetApiKey $apiKey - Repository $repoName - Tags ( " Azure " )
104
104
Write-Host " Published $scope module"
105
105
} else {
106
106
Write-Error " Can not find module with name $scope to publish"
0 commit comments