From 5506281742813438a2f2607cc152e08be35a16a1 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Wed, 18 Dec 2024 05:12:13 +0000 Subject: [PATCH] [@azure-tools/azure-spec-dashboard] Deployment script for Azure Spec Dashboard (#1997) This PR creates the pipeline for Deployment of the Azure Spec Dashboard. Please review and approve the PR. Thanks --- ...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"