-
Notifications
You must be signed in to change notification settings - Fork 134
/
azure-pipelines.yml
85 lines (68 loc) · 2.28 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
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/NCF.sln'
templateBuild: '**/NCF.Template.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
# - task: UseDotNet@2
# displayName: 'Use .NET SDK 8'
# inputs:
# version: '8.0.100'
# packageType: 'sdk'
# performMultiLevelLookup: true
# includePreviewVersions: true
- script: |
dotnet workload install aspire
displayName: 'Install Aspire Workload'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet 6.3.0'
inputs:
versionSpec: '6.3.0'
checkLatest: true
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: NuGetCommand@2
inputs:
restoreSolution: '$(templateBuild)'
- task: VSBuild@1
inputs:
solution: '$(templateBuild)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: NuGetCommand@2
displayName: Senparc.Ncf.Template
inputs:
command: push
packagesToPush: '**/Senparc.NCF.Template.*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'nuget-jeffrey-full-key'
continueOnError: true
condition: succeededOrFailed()
# - task: UseDotNet@2
# inputs:
# packageType: 'sdk'
# useGlobalJson: true
# workingDirectory: 'src/Senparc.Web'
# - task: DotNetCoreCLI@2
# inputs:
# command: 'publish'
# publishWebProjects: true
# workingDirectory: 'src/Senparc.Web'
# displayName: 'publish'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'sample'