Skip to content

Commit 2c6b2be

Browse files
committed
Merge pull request Azure#1092 from stankovski/release-1.0.0-preview
Added tag "Azure" to packages
2 parents 7c456c5 + 3cd6723 commit 2c6b2be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/PublishModules.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,29 +58,29 @@ $publishToLocal = test-path $repositoryLocation
5858
if (($scope -eq 'All') -or $publishToLocal ) {
5959
# If we publish 'All' or to local folder, publish AzureRM.Profile first, becasue it is the common dependency
6060
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")
6262
Write-Host "Published profile module"
6363
}
6464

6565
if (($scope -eq 'All') -or ($scope -eq 'ServiceManagement')) {
6666
$modulePath = "$packageFolder\$buildConfig\ServiceManagement\Azure"
6767
# Publish Azure module
6868
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")
7070
}
7171

7272
if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) {
7373
$modulePath = "$packageFolder\$buildConfig\ServiceManagement\Azure\Azure.Storage"
7474
# Publish AzureStorage module
7575
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")
7777
}
7878

7979
if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
8080
# Publish AzureRM module
8181
$modulePath = "$PSScriptRoot\AzureRM"
8282
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")
8484
Write-Host "Published Azure module"
8585
}
8686

@@ -92,15 +92,15 @@ if ($scope -eq 'All') {
9292
if (($module.Name -ne "AzureRM.Profile") -and ($module.Name -ne "Azure.Storage")) {
9393
$modulePath = $module.FullName
9494
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")
9696
Write-Host "Published $module module"
9797
}
9898
}
9999
} elseif ($scope -ne 'AzureRM') {
100100
$modulePath = Join-Path $resourceManagerRootFolder "AzureRM.$scope"
101101
if (Test-Path $modulePath) {
102102
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")
104104
Write-Host "Published $scope module"
105105
} else {
106106
Write-Error "Can not find module with name $scope to publish"

0 commit comments

Comments
 (0)