Update azure-pipelines.yml
This commit is contained in:
+10
-10
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user