-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
50 lines (43 loc) · 1.08 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 8.0.x SDK'
inputs:
packageType: sdk
version: '8.0.x'
- task: NuGetToolInstaller@1
inputs:
versionSpec: '6.9.1'
- 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: '**/AutoCAD.NET.Interop.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.SourcesDirectory)/**/*.nupkg;!$(Build.SourcesDirectory)/**/*.snupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'NuGet'