Skip to content

Commit

Permalink
Create deploy-spec-dashboard-storage-account.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 authored Dec 16, 2024
1 parent 3bd6a87 commit 55d2dd0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy-spec-dashboard-storage-account.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Spec Dashboard to Azure Storage

on:
push:
branches:
- main

# Allow one concurrent deployment
concurrency:
group: "dashboard-pages"
cancel-in-progress: true

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/actions/setup

- name: Install dependencies
run: pnpm install

- name: Install browsers
run: pnpm exec playwright install

- name: Build
run: pnpm --filter "@typespec/spec-dashboard..." run build

- name: Upload to Azure Storage
uses: azure/cli@v1
with:
inlineScript: |
az storage blob upload-batch \
--account-name specdashboardstorage \
--source packages/spec-dashboard/dist \
--destination $web

0 comments on commit 55d2dd0

Please sign in to comment.