-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(v8 release): migrate v8 docsite release to yaml (#32820)
- Loading branch information
1 parent
b5f5ef0
commit 62f0ffc
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters