-
Notifications
You must be signed in to change notification settings - Fork 2.8k
/
Copy pathpublish-website.yml
50 lines (47 loc) · 1.67 KB
/
publish-website.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
parameters:
- name: version
type: string
default: 8
steps:
- task: AzureCLI@2
displayName: 'Copy website drop to Azure'
inputs:
azureSubscription: 'Azure - fabricweb storage - NEW'
scriptType: 'bash'
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch \
--destination 'fabric-website' \
--source $(System.DefaultWorkingDirectory)/apps/public-docsite/dist \
--account-name fabricweb \
--destination-path v${{ parameters.version }}/$(Build.BuildNumber)/ \
--auth-mode login \
--overwrite
- task: AzureCLI@2
displayName: 'Update dogfood manifest in Azure blob'
inputs:
azureSubscription: 'Azure - fabricweb storage - NEW'
scriptType: 'bash'
scriptLocation: inlineScript
inlineScript: |
az storage blob upload \
--account-name fabricweb \
--container-name fabric-website \
--name manifests/v${{ parameters.version }}-df.js \
--file $(System.DefaultWorkingDirectory)/site-manifests/v${{ parameters.version }}-df.js \
--auth-mode login \
--overwrite
- task: AzureCLI@2
displayName: 'Update prod manifest in Azure blob'
inputs:
azureSubscription: 'Azure - fabricweb storage - NEW'
scriptType: 'bash'
scriptLocation: inlineScript
inlineScript: |
az storage blob upload \
--account-name fabricweb \
--container-name fabric-website \
--name manifests/v${{ parameters.version }}-prod.js \
--file $(System.DefaultWorkingDirectory)/site-manifests/v${{ parameters.version }}-prod.js \
--auth-mode login \
--overwrite