forked from rafaelfgx/Architecture
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
63 lines (54 loc) · 1.33 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
resources:
- repo: self
clean: true
pool:
name: Hosted Windows 2019 with VS2019
variables:
BuildConfiguration: 'Release'
steps:
- task: UseNode@1
displayName: 'Node Install'
inputs:
version: 13.x
checkLatest: true
- task: Npm@1
displayName: 'NPM Install'
inputs:
workingDir: source/Web/Frontend
verbose: true
- task: Npm@1
displayName: 'NPM Install Angular CLI'
inputs:
command: custom
workingDir: source/Web/Frontend
verbose: false
customCommand: 'install -g @angular/cli'
- task: Npm@1
displayName: 'NPM Run Production'
inputs:
command: custom
workingDir: source/Web/Frontend
verbose: false
customCommand: 'run production'
- task: UseDotNet@2
displayName: '.NET SDK'
inputs:
useGlobalJson: true
- task: DotNetCoreCLI@2
displayName: '.NET Publish'
inputs:
command: publish
publishWebProjects: false
projects: '**/*.Web.csproj'
arguments: '--configuration $(BuildConfiguration) --output $(build.ArtifactStagingDirectory)'
zipAfterPublish: false
modifyOutputPath: false
- task: CopyFiles@2
displayName: 'Copy Angular Dist'
inputs:
SourceFolder: source/Web/Frontend/dist
TargetFolder: '$(build.ArtifactStagingDirectory)/Frontend/dist'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
ArtifactName: publish