-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@typespec/spec-dashboard] Deploy Spec Dashboard (#5381)
- Loading branch information
1 parent
f76f318
commit 71b5c41
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |