-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (35 loc) · 1.06 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
# Node.js with Angular
# Build a Node.js project that uses Angular.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
npm install -g @angular/cli
npm install
ng build --prod
displayName: 'npm install and build'
# copy output to build artifacts
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)/app'
inputs:
SourceFolder: 'dist' # edit this to your needs
TargetFolder: '$(Build.ArtifactStagingDirectory)/app'
# publish build artifacts
- task: PublishPipelineArtifact@0
displayName: "Publish artifacts"
inputs:
artifactName: 'app'
targetPath: '$(Build.ArtifactStagingDirectory)/app'
- task: CmdLine@1
displayName: 'Publish artifact to Cloud Storage'
inputs:
filename: gsutil
arguments: 'cp $(Build.ArtifactStagingDirectory)/app gs://train.soma.farm'