-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
48 lines (41 loc) · 1.34 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
# 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-latest'
stages:
- stage: env
jobs:
- job: Nodes
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.13.1'
displayName: 'Install Node.js'
- stage: build
jobs:
- job: build_site
steps:
- task: Npm@1
inputs:
command: 'install'
- script: |
export
npm run build
tar czvf build.tgz dist publish.sh
# - job: upload_package
# steps:
- task: CopyFiles@2
inputs:
contents: build.tgz
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: 'Copy archives to artifacts staging directory'
# condition: and(succeeded(), startsWith(variables['System.PullRequest.SourceBranch'], 'release/'))
- task: PublishBuildArtifacts@1
inputs:
path: $(Build.ArtifactStagingDirectory)
displayName: 'Publish artifacts'
# condition: and(succeeded(), startsWith(variables['System.PullRequest.SourceBranch'], 'release/'))