Skip to content

Commit

Permalink
[@typespec/spec-dashboard] Deploy Spec Dashboard (#5381)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 authored Dec 17, 2024
1 parent f76f318 commit 71b5c41
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions eng/tsp-core/pipelines/dashboard-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
trigger:
branches:
include:
- main
# For patch releases
- release/*

variables:
connectionString: $(AZ_SPEC_DASHBOARD_CONNECTION_STRING)

extends:
template: /eng/common/pipelines/templates/1es-redirect.yml
parameters:
variables:
- template: /eng/tsp-core/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/tsp-core/pipelines/templates/install.yml
- template: /eng/tsp-core/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 --source packages/spec-dashboard/dist/ --destination '$web' --overwrite --connection-string "$AZURE_STORAGE_CONNECTION_STRING"
displayName: "Upload files to Azure Blob Storage"

0 comments on commit 71b5c41

Please sign in to comment.