forked from BabylonJS/Babylon.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-cd.yml
57 lines (56 loc) · 2.23 KB
/
azure-pipelines-cd.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
54
55
56
57
trigger:
- preview
jobs:
- job: NetlifyStaticDeploy
displayName: 'Deploy'
pool:
vmImage: 'Ubuntu-16.04'
demands: npm
steps:
- script: 'npm install netlify-cli'
displayName: 'npm install netlify'
- script: 'npm install typescript'
displayName: 'npm install typescript'
# Sandbox
- script: 'npx netlify unlink'
displayName: 'netlify unlink'
- script: 'npx netlify link --id=4deda23f-f382-458b-897e-2f2111b5f263'
displayName: 'netlify link babylonjs-sandbox'
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
- script: 'npx netlify deploy --prod --dir=sandbox/public/'
displayName: 'netlify deploy babylonjs-sandbox'
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
# nodeeditor
- script: 'npm install --prefix Tools/Gulp && npx gulp nodeEditor --gulpfile ./Tools/Gulp/gulpfile.js'
displayName: 'gulp build nodeeditor'
- script: 'npx netlify unlink'
displayName: 'netlify unlink'
- script: 'npx netlify link --id=d232f0dc-cdb2-473e-b0f5-91fb1dd1d398'
displayName: 'netlify link nodeeditor'
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
- script: 'npx netlify deploy --prod --dir=nodeEditor/public'
displayName: 'netlify deploy nodeeditor'
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
# viewer-babylonjs
- script: 'npm install --prefix Tools/Gulp && npx gulp viewer --gulpfile ./Tools/Gulp/gulpfile.js'
displayName: 'gulp build viewer-babylonjs'
- script: 'npx netlify unlink'
displayName: 'netlify unlink'
- script: 'npx netlify link --id=a32b113f-8187-43ab-9133-8844521f26f4'
displayName: 'netlify link viewer-babylonjs'
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
- script: 'npx netlify deploy --prod --dir=Viewer/dist/'
displayName: 'netlify deploy viewer-babylonjs'
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)