Skip to content

Commit

Permalink
[@azure-tools/azure-spec-dashboard] Deployment script for Azure Spec …
Browse files Browse the repository at this point in the history
…Dashboard (#1997)

This PR creates the pipeline for Deployment of the Azure Spec Dashboard.
Please review and approve the PR. Thanks
  • Loading branch information
sarangan12 authored Dec 18, 2024
1 parent 6fd0457 commit 5506281
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 5506281

Please sign in to comment.