-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines-cd.yml
33 lines (31 loc) · 1.39 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
trigger:
- deploy
# Do not run on PR builds
pr: none
jobs:
- job: Deploy
displayName: "Build and Publish"
pool:
vmImage: "Ubuntu-latest"
demands: npm
steps:
- script: "npm install"
displayName: "Npm install and build"
- script: "npm run test"
displayName: "Jest Unit Tests"
- script: "npm run preparePublish"
displayName: "Npm preparePublish (version setting, cross-package dependency configuration)"
- task: Npm@1
displayName: "Npm publish"
inputs:
command: "custom"
customCommand: "publish --tag preview --access public -w @babylonjs/smart-filters && publish --tag preview --access public -w @babylonjs/smart-filters-editor"
customEndpoint: "NPMWithAccessToken"
- script: |
# SFE
cd packages/demo/www
zip -r ../../../dist.zip *
cd ../../..
curl $(DEPLOYMENT_SERVER)/upload -i -X POST -H "Content-Type: multipart/form-data" -H "Authorization: $(BASIC_AUTH)" -F "path=smartFiltersEditor" -F "storageAccount=babylontools" -F "[email protected]"
curl "$(DEPLOYMENT_SERVER)/purgeTest?endpoint=smart-filters-editor&profileName=babylonjstools&wait=true" -i -H "Authorization: $(BASIC_AUTH)"
displayName: "SFE deployment"