Skip to content

Commit

Permalink
ci: Add Widgetbook Cloud workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Nov 22, 2024
1 parent 89c5a03 commit d04d298
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/widgetbook-cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Widgetbook Cloud Hosting
on: push

jobs:
widgetbook-cloud-hosting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Bootstrap App
run: |
flutter pub get
# Add any other steps needed to make your
# app widgets available for Widgetbook
- name: Build Widgetbook
working-directory: optimus_widgetbook
run: |
flutter pub get
dart run build_runner build -d
flutter build web -t lib/main.dart
- name: Install Widgetbook CLI
run: dart pub global activate widgetbook_cli

- name: Push Widgetbook Build
working-directory: optimus_widgetbook
run: widgetbook cloud build push --api-key ${{ secrets.WIDGETBOOK_API_KEY }}

0 comments on commit d04d298

Please sign in to comment.