This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathazure-pipelines.yml
85 lines (74 loc) · 2.65 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
pool:
name: Azure Pipelines
vmImage: 'windows-latest'
demands:
- msbuild
- visualstudio
variables:
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: '.NET Core 3.1.x'
inputs:
version: '3.1.x'
packageType: sdk
- task: DotNetCoreCLI@2
displayName: 'Build FAQPlusPlus'
inputs:
projects: Source/Microsoft.Teams.Apps.FAQPlusPlus/Microsoft.Teams.Apps.FAQPlusPlus.csproj
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publish FAQPlusPlus'
inputs:
command: publish
publishWebProjects: false
projects: Source/Microsoft.Teams.Apps.FAQPlusPlus/Microsoft.Teams.Apps.FAQPlusPlus.csproj
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: DotNetCoreCLI@2
displayName: 'Build AzureFunction'
inputs:
projects: Source/Microsoft.Teams.Apps.FAQPlusPlus.AzureFunction/Microsoft.Teams.Apps.FAQPlusPlus.AzureFunction.csproj
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publish AzureFunction'
inputs:
command: publish
publishWebProjects: false
projects: Source/Microsoft.Teams.Apps.FAQPlusPlus.AzureFunction/Microsoft.Teams.Apps.FAQPlusPlus.AzureFunction.csproj
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '"Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/packages.config"'
feedsToUse: 'select'
restoreDirectory: '../Packages'
- task: MSBuild@1
inputs:
solution: '"Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/Microsoft.Teams.Apps.FAQPlusPlus.Configuration.csproj"'
configuration: 'Release'
clean: true
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/bin'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Microsoft.Teams.Apps.FAQPlusPlus.Configuration.zip'
replaceExistingArchive: true
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)/FAQ'
inputs:
SourceFolder: '$(build.artifactstagingdirectory)'
TargetFolder: '$(build.artifactstagingdirectory)/FAQ'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)/FAQ'
- task: ComponentGovernanceComponentDetection@0
displayName: 'Component detection'
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'