-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathazure-pipelines.yml
87 lines (77 loc) · 2.49 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
# publishVstsFeed: ''
steps:
- task: UseDotNet@2
displayName: 'Install .NET SDK'
inputs:
version: 9.x
performMultiLevelLookup: true
includePreviewVersions: true # Required for preview versions
- task: DotNetCoreCLI@2
displayName: Restore packages
inputs:
command: 'restore'
projects: './GenerativeAI.sln'
feedsToUse: 'select'
# vstsFeed: '$(publishVstsFeed)' # A series of numbers and letters
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: 'build'
projects: './GenerativeAI.sln'
arguments: '-c $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Pack for .NET
inputs:
command: 'pack'
packagesToPack: './src/Mscc.GenerativeAI/Mscc.GenerativeAI.csproj'
nobuild: true
versioningScheme: 'off'
# - task: NuGetCommand@2
# displayName: Pack for .NET
# inputs:
# command: pack
# packagesToPack: './src/Mscc.GenerativeAI/Mscc.GenerativeAI.csproj'
# packDestination: '$(Build.ArtifactStagingDirectory)'
- task: DotNetCoreCLI@2
displayName: Pack for ASP.NET Core
inputs:
command: 'pack'
packagesToPack: './src/Mscc.GenerativeAI.Web/Mscc.GenerativeAI.Web.csproj'
nobuild: true
versioningScheme: 'off'
- task: DotNetCoreCLI@2
displayName: Pack for .NET using Google Cloud Client Library
inputs:
command: 'pack'
packagesToPack: './src/Mscc.GenerativeAI.Google/Mscc.GenerativeAI.Google.csproj'
nobuild: true
versioningScheme: 'off'
- task: DotNetCoreCLI@2
displayName: Pack for Microsoft.Extension.AI and Microsoft Semantic Kernel
inputs:
command: 'pack'
packagesToPack: './src/Mscc.GenerativeAI.Microsoft/Mscc.GenerativeAI.Microsoft.csproj'
nobuild: true
versioningScheme: 'off'
# - task: DotNetCoreCLI@2
# displayName: Push to Azure DevOps feed
# inputs:
# command: 'push'
# packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
# nuGetFeedType: 'internal'
# publishVstsFeed: '$(publishVstsFeed)'
- task: NuGetCommand@2
displayName: Push to Azure DevOps feed
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '$(publishVstsFeed)'
allowPackageConflicts: true