Skip to content

Merge pull request #719 from MewsSystems/release-2024-12-10 #14

Merge pull request #719 from MewsSystems/release-2024-12-10

Merge pull request #719 from MewsSystems/release-2024-12-10 #14

name: deploy-widgetbook-azure
on:
workflow_dispatch:
push:
branches:
- main
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@v4
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID}}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Setup Flutter environment
uses: ./.github/actions/setup
- name: Build Web
run: |
melos exec --scope="optimus_widgetbook" -- "flutter build web"
- name: Check build folder
run: |
ls -s optimus_widgetbook/build/web/
- name: Upload to blob storage
uses: azure/CLI@v2
with:
inlineScript: |
az storage blob upload-batch --destination mews-ui-widgetbook --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login