-
Notifications
You must be signed in to change notification settings - Fork 165
/
pr-tryit.yaml
47 lines (39 loc) · 1.31 KB
/
pr-tryit.yaml
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
trigger: none
pr:
- main
jobs:
- job: publish_playground
displayName: Publish playground
pool:
vmImage: windows-latest
steps:
- checkout: self
persistCredentials: true
- task: NodeTool@0
inputs:
versionSpec: 16.14.2
displayName: Install Node.js
- script: npx @microsoft/rush install
displayName: Install JavaScript Dependencies
- script: npx @microsoft/rush rebuild --verbose
displayName: Build
- task: AzureFileCopy@4
inputs:
sourcePath: "packages/playground/dist/*"
azureSubscription: "Azure SDK Playground"
destination: "AzureBlob"
storage: "cadlplayground"
blobPrefix: prs/$(System.PullRequest.PullRequestNumber)/
containerName: "$web"
displayName: "Publish playground to PR endpoint"
- task: AzureFileCopy@4
inputs:
sourcePath: "packages/website/dist/*"
azureSubscription: "Azure SDK Playground"
destination: "AzureBlob"
storage: "cadlwebsite"
blobPrefix: prs/$(System.PullRequest.PullRequestNumber)/
containerName: "$web"
displayName: "Publish website to PR endpoint"
- script: node eng/scripts/create-tryit-comment.js
displayName: Check already commented