-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy-plugin-package.yml
35 lines (30 loc) · 1.08 KB
/
deploy-plugin-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Repo: FirelyTeam/azure-pipeline-templates
# File: deploy-plugin-package.yml
parameters:
pool: {}
nugetcredentials:
environment: 'plugin-deploy'
name: 'Deploy_plugin_package'
displayName: 'Deploy plugin as an NuGet Package'
packageArtifactName: 'NuGetPackages'
jobs:
- deployment: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
pool: ${{ parameters.pool }}
environment: ${{ parameters.environment }}
strategy:
runOnce:
deploy:
steps:
- task: DownloadBuildArtifacts@0
inputs:
artifactName: ${{ parameters.packageArtifactName }}
downloadPath: '$(System.ArtifactsDirectory)/NuGetArtifacts'
- task: NuGetCommand@2
displayName: 'Nuget push'
inputs:
command: push
packagesToPush: '$(System.ArtifactsDirectory)/NuGetArtifacts/${{ parameters.packageArtifactName }}/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: ${{ parameters.nugetcredentials }}
verbosityPush: Normal