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 # Publish Module to Gallery
- job: Publish - job: Publish
dependsOn: Build dependsOn: Build
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/zvma-updates')) condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/zvma-updates'))
pool: pool:
vmImage: 'windows-latest' vmImage: 'windows-latest'
steps: steps:
- powershell: | - powershell: |
Install-Module -Name PowerShellGet -Force -Scope CurrentUser Install-Module -Name PowerShellGet -Force -Scope CurrentUser
$apiKey = "$(PowerShellGalleryApiKey)" $apiKey = "$(PowerShellGalleryApiKey)"
Publish-Module -Name 'ZertoApiWrapper' -NuGetApiKey $apiKey Publish-Module -Name 'ZertoApiWrapper' -NuGetApiKey $apiKey
displayName: 'Publish to PowerShell Gallery' displayName: 'Publish to PowerShell Gallery'