From 4c891875b4d437b1a630b180d0c10275c66b6542 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Tue, 17 Dec 2024 17:32:07 -0800 Subject: [PATCH] [@azure-tools/azure-spec-dashboard] Deployment script for Azure Spec Dashboard --- ...y-azure-spec-dashboard-storage-account.yml | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml b/eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml index 5d5aeadb08..49d0b30cb7 100644 --- a/eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml +++ b/eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml @@ -1 +1,43 @@ -# Pending file +trigger: + branches: + include: + - main + # For patch releases + - release/* + +pr: none + +extends: + template: /eng/pipelines/templates/1es-redirect.yml + parameters: + variables: + - template: /eng/pipelines/templates/variables/globals.yml@self + stages: + - stage: build + displayName: Build and Deploy + + pool: + name: $(WINDOWSPOOL) + image: $(WINDOWSVMIMAGE) + os: windows + + jobs: + - job: build + displayName: Build + + variables: + TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build + + steps: + - template: /eng/pipelines/templates/install.yml + - template: /eng/pipelines/templates/build.yml + + - task: AzureCLI@2 + inputs: + azureSubscription: "TypeSpec Storage" + scriptType: "bash" + scriptLocation: "inlineScript" + inlineScript: | + echo "Uploading files to Azure Blob Storage..." + az storage blob upload-batch --account-name azurespecdashboard --source packages/azure-spec-dashboard/dist/ --destination '$web' --overwrite + displayName: "Upload files to Azure Blob Storage"