-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-build-pipeline.yaml
55 lines (55 loc) · 1.52 KB
/
azure-build-pipeline.yaml
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
trigger:
branches:
include:
- dev
steps:
- task: UseDotNet@2
name: 'install_dotnet_sdk'
inputs:
version: '3.0.100-preview4-011223'
- task: DotNetCoreCLI@2
name: 'dotnet_restore'
inputs:
command: 'restore'
projects: '**/*.csproj'
workingDirectory: './back-app/'
- task: DotNetCoreCLI@2
name: 'dotnet_build'
inputs:
command: 'build'
workingDirectory: './back-app/'
arguments: './SignalrReactRedux.sln -c Release'
- task: DotNetCoreCLI@2
name: 'dotnet_publish'
inputs:
command: 'publish'
projects: './back-app/src/Front.WebApi/Front.WebApi.csproj'
arguments: '--self-contained --runtime win10-x64 --configuration Release'
publishWebProjects: false
zipAfterPublish: false
- task: Npm@1
name: 'npm_install'
inputs:
command: 'install'
workingDir: '.\front-app'
- task: Npm@1
name: 'npm_run_build'
inputs:
command: 'custom'
workingDir: './front-app'
customCommand: 'run build'
- task: CopyFiles@2
name: 'copy_front_artifact_to_wwwroot'
inputs:
SourceFolder: './front-app/build'
TargetFolder: './back-app/src/Front.WebApi/bin/Release/netcoreapp3.0/win10-x64/publish/wwwroot'
CleanTargetFolder: true
OverWrite: true
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: './back-app/src/Front.WebApi/bin/Release/netcoreapp3.0/win10-x64/publish'
includeRootFolder: false
- task: PublishBuildArtifacts@1
name: 'publish_artifacts'
inputs:
ArtifactName: 'drop_$(Build.BuildId)'