Skip to content

Commit

Permalink
build: [DX-2254] Setup publish action for widgetbook
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Sep 25, 2024
1 parent 965d5ba commit 51e4f8b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Deploy Storybook
name: Deploy Widgetbook
on:
workflow_dispatch:
push:
branches:
- master
paths:
- storybook/**
- optimus_widgetbook/**
- optimus/**

jobs:
Expand All @@ -19,7 +19,7 @@ jobs:

- name: Build Web
run: |
melos exec --scope="storybook" -- "flutter build web"
melos exec --scope="optimus_widgetbook" -- "flutter build web"
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
Expand All @@ -28,4 +28,4 @@ jobs:
firebaseServiceAccount: "${{ secrets.FIREBASE_WEB_DEPLOY }}"
channelId: live
projectId: mews-optimus
entryPoint: storybook/
entryPoint: optimus_widgetbook/
5 changes: 5 additions & 0 deletions optimus_widgetbook/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "mews-optimus"
}
}
10 changes: 10 additions & 0 deletions optimus_widgetbook/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}

0 comments on commit 51e4f8b

Please sign in to comment.