-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-ci.yml
48 lines (39 loc) · 1.21 KB
/
app-ci.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
trigger: none
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- script: |
cd $(System.DefaultWorkingDirectory)/apps/TodoListSPA
npm install
npm install -g @angular/cli
ng build -c=production --output-path='$(Build.ArtifactStagingDirectory)/frontend'
displayName: 'npm install and build'
- task: PublishBuildArtifacts@1
displayName: 'Publish frontend app'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/frontend'
ArtifactName: 'frontend'
- task: UseDotNet@2
inputs:
version: '3.1.x'
packageType: runtime
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '$(System.DefaultWorkingDirectory)/apps/TodoListFn/*.csproj'
arguments: '--output $(Build.ArtifactStagingDirectory)/function --configuration Release'
- task: PublishBuildArtifacts@1
displayName: 'Publish function app'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/function'
ArtifactName: 'function'
- task: PublishBuildArtifacts@1
displayName: 'Publish templates'
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/arm_templates'
ArtifactName: 'templates'