diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3776e99..a4bd637 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -106,13 +106,13 @@ jobs: # Publish Module to Gallery - job: Publish - dependsOn: Build - condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/zvma-updates')) - pool: - vmImage: 'windows-latest' - steps: - - powershell: | - Install-Module -Name PowerShellGet -Force -Scope CurrentUser - $apiKey = "$(PowerShellGalleryApiKey)" - Publish-Module -Name 'ZertoApiWrapper' -NuGetApiKey $apiKey - displayName: 'Publish to PowerShell Gallery' + dependsOn: Build + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/zvma-updates')) + pool: + vmImage: 'windows-latest' + steps: + - powershell: | + Install-Module -Name PowerShellGet -Force -Scope CurrentUser + $apiKey = "$(PowerShellGalleryApiKey)" + Publish-Module -Name 'ZertoApiWrapper' -NuGetApiKey $apiKey + displayName: 'Publish to PowerShell Gallery'