Skip to content

Commit 71b5c41

Browse files
authored
[@typespec/spec-dashboard] Deploy Spec Dashboard (#5381)
1 parent f76f318 commit 71b5c41

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
# For patch releases
6+
- release/*
7+
8+
variables:
9+
connectionString: $(AZ_SPEC_DASHBOARD_CONNECTION_STRING)
10+
11+
extends:
12+
template: /eng/common/pipelines/templates/1es-redirect.yml
13+
parameters:
14+
variables:
15+
- template: /eng/tsp-core/pipelines/templates/variables/globals.yml@self
16+
17+
stages:
18+
- stage: build
19+
displayName: Build and Deploy
20+
21+
pool:
22+
name: $(WINDOWSPOOL)
23+
image: $(WINDOWSVMIMAGE)
24+
os: windows
25+
26+
jobs:
27+
- job: build
28+
displayName: Build
29+
30+
variables:
31+
TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build
32+
33+
steps:
34+
- template: /eng/tsp-core/pipelines/templates/install.yml
35+
- template: /eng/tsp-core/pipelines/templates/build.yml
36+
37+
- task: AzureCLI@2
38+
inputs:
39+
azureSubscription: "TypeSpec Storage"
40+
scriptType: "bash"
41+
scriptLocation: "inlineScript"
42+
inlineScript: |
43+
echo "Uploading files to Azure Blob Storage..."
44+
az storage blob upload-batch --source packages/spec-dashboard/dist/ --destination '$web' --overwrite --connection-string "$AZURE_STORAGE_CONNECTION_STRING"
45+
displayName: "Upload files to Azure Blob Storage"

0 commit comments

Comments
 (0)