forked from OneIdentity/SafeguardDotNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-publish.yml
31 lines (31 loc) · 1.04 KB
/
build-publish.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
variables:
- template: pipeline-templates/global-variables.yml
trigger:
branches:
include:
- master
- release-*
paths:
exclude:
- README.md
pr: none
jobs:
- job: Build
displayName: 'Build and publish .NET Standard SDK and .NET Framework GUI component'
variables:
- template: pipeline-templates/job-variables.yml
pool:
vmImage: 'windows-latest'
steps:
- template: pipeline-templates/build-steps.yml
- task: AzureKeyVault@1
inputs:
azureSubscription: 'OneIdentity.RD.SBox.Safeguard-ServiceConnection'
KeyVaultName: 'SafeguardBuildSecrets'
SecretsFilter: 'NugetOrgApiKey'
displayName: 'Get Nuget.Org API key from Sandbox Azure Key Vault'
- task: NuGetCommand@2
inputs:
command: 'custom'
arguments: 'push $(Build.ArtifactStagingDirectory)\*.nupkg -source https://api.nuget.org/v3/index.json -ApiKey $(NugetOrgApiKey) -NonInteractive -Verbosity detailed'
displayName: 'Publishing NuGet packages to NuGet.org'