-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
102 lines (88 loc) · 2.79 KB
/
azure-pipelines.yml
File metadata and controls
102 lines (88 loc) · 2.79 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'macOS-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install -g node-gyp
npm install
npm run build:all:release
displayName: 'npm install and build'
env:
GH_TOKEN: $(gh.token)
- script: npm run pkg-sync
displayName: 'package.json sync'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/dist/mac
includeRootFolder: false
archiveType: tar
tarCompression: gz
archiveFile: $(Build.SourcesDirectory)/dist/mac.tar.gz
replaceExistingArchive: true
displayName: 'zip mac binary'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/dist/win-unpacked
includeRootFolder: false
archiveType: tar
tarCompression: gz
archiveFile: $(Build.SourcesDirectory)/dist/win.tar.gz
replaceExistingArchive: true
displayName: 'zip win binary'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/dist/linux-unpacked
includeRootFolder: false
archiveType: tar
tarCompression: gz
archiveFile: $(Build.SourcesDirectory)/dist/linux.tar.gz
replaceExistingArchive: true
displayName: 'zip linux binary'
- task: CopyFiles@2
inputs:
Contents: |
$(Build.SourcesDirectory)/hook.js
$(Build.SourcesDirectory)/hook-installer.js
$(Build.SourcesDirectory)/post-install.js
$(Build.SourcesDirectory)/package.core.json
$(Build.SourcesDirectory)/README.md
TargetFolder: $(Build.SourcesDirectory)/package/core
displayName: 'Core package file copies'
- task: CopyFiles@2
inputs:
Contents: |
$(Build.SourcesDirectory)/dist/mac.tar.gz
$(Build.SourcesDirectory)/package.mac.json
$(Build.SourcesDirectory)/post-install-mac.js
TargetFolder: $(Build.SourcesDirectory)/package/mac
displayName: 'Mac package file copies'
- task: CopyFiles@2
inputs:
Contents: |
$(Build.SourcesDirectory)/dist/win.tar.gz
$(Build.SourcesDirectory)/package.win.json
$(Build.SourcesDirectory)/post-install-win.js
TargetFolder: $(Build.SourcesDirectory)/package/win
displayName: 'Windows package file copies'
- task: CopyFiles@2
inputs:
Contents: |
$(Build.SourcesDirectory)/dist/linux.tar.gz
$(Build.SourcesDirectory)/package.linux.json
TargetFolder: $(Build.SourcesDirectory)/package/linux
displayName: 'Linux package file copies'
- script: npm run pkg-rename
displayName: 'package.json renames'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.SourcesDirectory)/package
ArtifactName: 'package'