Update azure-pipelines.yml

This commit is contained in:
2024-01-23 18:37:34 -05:00
parent 5f6693fac4
commit 457b7e6a74
+10 -10
View File
@@ -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'