Skip to content

Commit 88dac8e

Browse files
author
Hovsep Mkrtchyan
committed
Moving AzureRM publish to the end of publish process
1 parent cb1d4f7 commit 88dac8e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/PublishModules.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) {
7676
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName -Tags ("Azure") -LicenseUri "http://aka.ms/azps-license"
7777
}
7878

79-
if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
80-
# Publish AzureRM module
81-
$modulePath = "$PSScriptRoot\AzureRM"
82-
Write-Host "Publishing AzureRM module from $modulePath"
83-
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName -Tags ("Azure") -LicenseUri "http://aka.ms/azps-license"
84-
Write-Host "Published Azure module"
85-
}
86-
8779
$resourceManagerModules = Get-ChildItem -Path $resourceManagerRootFolder -Directory
8880
if ($scope -eq 'All') {
8981
foreach ($module in $resourceManagerModules) {
@@ -106,3 +98,11 @@ if ($scope -eq 'All') {
10698
Write-Error "Can not find module with name $scope to publish"
10799
}
108100
}
101+
102+
if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
103+
# Publish AzureRM module
104+
$modulePath = "$PSScriptRoot\AzureRM"
105+
Write-Host "Publishing AzureRM module from $modulePath"
106+
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName -Tags ("Azure") -LicenseUri "http://aka.ms/azps-license"
107+
Write-Host "Published Azure module"
108+
}

0 commit comments

Comments
 (0)