forked from StateOfCalifornia/DigitalCovid19VaccineRecord-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
53 lines (41 loc) · 1.09 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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
major: 1
minor: 0
name: $(major).$(minor)$(Rev:.r)
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
- script: npm run build
displayName: "npm build"
- task: CopyFiles@2
inputs:
Contents: 'web.config'
TargetFolder: build
- task: CopyFiles@2
displayName: 'Copy Build Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: build
TargetFolder: '$(Build.ArtifactStagingDirectory)/build'
# - task: CopyFiles@2
# displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
# inputs:
# SourceFolder: config
# TargetFolder: '$(Build.ArtifactStagingDirectory)/config'
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts: drop'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
includeRootFolder: true
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true