Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@azure-tools/azure-spec-dashboard] Deployment script for Azure Spec Dashboard #1997

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading