|
@@ -10,21 +10,8 @@ jobs:
|
|
steps:
|
|
steps:
|
|
- script: 'npm install netlify-cli'
|
|
- script: 'npm install netlify-cli'
|
|
displayName: 'npm install netlify'
|
|
displayName: 'npm install netlify'
|
|
- - script: 'npm install --prefix Playground/'
|
|
|
|
- displayName: 'npm install Playground'
|
|
|
|
- script: 'npm install typescript'
|
|
- script: 'npm install typescript'
|
|
displayName: 'npm install typescript'
|
|
displayName: 'npm install typescript'
|
|
-# Controllers
|
|
|
|
- - script: 'npx netlify link --id=220a52f0-ea85-4244-8342-8ec149cd78d6'
|
|
|
|
- displayName: 'netlify link babylonjscontrollers'
|
|
|
|
- env:
|
|
|
|
- AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
|
|
|
|
- NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
|
|
|
|
- - script: 'npx netlify deploy --prod --dir=assets/meshes/controllers'
|
|
|
|
- displayName: 'netlify deploy babylonjscontrollers'
|
|
|
|
- env:
|
|
|
|
- AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
|
|
|
|
- NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
|
|
|
|
# Sandbox
|
|
# Sandbox
|
|
- script: 'npx netlify unlink'
|
|
- script: 'npx netlify unlink'
|
|
displayName: 'netlify unlink'
|
|
displayName: 'netlify unlink'
|
|
@@ -67,20 +54,4 @@ jobs:
|
|
displayName: 'netlify deploy viewer-babylonjs'
|
|
displayName: 'netlify deploy viewer-babylonjs'
|
|
env:
|
|
env:
|
|
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
|
|
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
|
|
- NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
|
|
|
|
-# - task: AzureFileCopy@2
|
|
|
|
-# displayName: 'Update Preview Storage'
|
|
|
|
-# inputs:
|
|
|
|
-# SourcePath: 'dist/preview release'
|
|
|
|
-# azureSubscription: 'Visual Studio Enterprise (2bb1afe6-4492-4d3d-9cf8-e658f447d211)'
|
|
|
|
-# Destination: AzureBlob
|
|
|
|
-# storage: previewcdn
|
|
|
|
-# ContainerName: '$web'
|
|
|
|
-
|
|
|
|
-# - task: AzureCLI@2
|
|
|
|
-# displayName: 'Purge preview CDN'
|
|
|
|
-# inputs:
|
|
|
|
-# azureSubscription: 'Visual Studio Enterprise(2bb1afe6-4492-4d3d-9cf8-e658f447d211)'
|
|
|
|
-# scriptType: 'ps'
|
|
|
|
-# scriptLocation: 'inlineScript'
|
|
|
|
-# inlineScript: 'az cdn endpoint purge --resource-group Playground-Resources --profile-name Preview-CDN --name babylonjspreview --content-paths /*'
|
|
|
|
|
|
+ NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
|