-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathazure-pipelines.yml
51 lines (43 loc) · 1.09 KB
/
azure-pipelines.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
pool:
vmImage: 'windows-latest'
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
pr:
branches:
include:
- '*'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 6.0.x SDK'
inputs:
packageType: sdk
version: '6.0.x'
- task: NuGetToolInstaller@1
inputs:
versionSpec: '6.4.0'
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
includeNuGetOrg: true
- task: DotNetCoreCLI@2
displayName: 'Creating NuGet package (with debug symbols)'
condition: and(succeeded(), not(eq(variables['Build.Reason'], 'PullRequest')))
inputs:
command: 'custom'
projects: '**/Revit.SDK.20*.csproj'
custom: 'msbuild'
arguments: '/t:Pack'
workingDirectory: '$(Build.SourcesDirectory)'
- task: NuGetCommand@2
displayName: 'Pushing NuGet package'
condition: and(succeeded(), not(eq(variables['Build.Reason'], 'PullRequest')))
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.snupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'NuGet'