Skip to content

Commit

Permalink
ci: [DX-2273] Add Azure upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Nov 27, 2024
1 parent 6c26aa4 commit 38e4d0f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy-widgetbook-azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: deploy-widgetbook-azure
on:
workflow_dispatch:
push:
branches:
- master
paths:
- optimus_widgetbook/**
- optimus/**

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
deploy_widgetbook_azure:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/actions/setup

- name: Build Web
run: |
melos exec --scope="optimus_widgetbook" -- "flutter build web"
- uses: actions/checkout@v4
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Upload to blob storage
uses: azure/CLI@v2
with:
inlineScript: |
az storage file upload --enable-file-backup-request-intent -s mews-ui-widgetbook --source optimus_widgetbook/build/web --auth-mode login --account-name ${{ secrets.AZURE_ACCOUNT_NAME }}

0 comments on commit 38e4d0f

Please sign in to comment.