-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
53 lines (46 loc) · 1.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
name: $(Build.BuildId)
trigger:
- master
pr:
- none
variables:
buildConfiguration: 'Release'
Parameters.Solution: '$(Build.SourcesDirectory)/tulsa-dnug-website.sln'
Artifact: 'website'
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: windows-2019
variables:
buildConfiguration: 'Release'
Parameters.Solution: '$(Build.SourcesDirectory)/tulsa-dnug-website.sln'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK 3.0'
inputs:
packageType: sdk
version: 3.0.100
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '$(Parameters.Solution)'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Parameters.Solution)'
arguments: '--configuration $(BuildConfiguration) --no-restore'
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()