Test widgetbook cloud #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: widgetbook | |
run: | | |
flutter pub get | |
dart run build_runner build -d | |
flutter build web -t examples/coffee_maker_navigator_2/widgetbook/lib/main.dart | |
- name: Install Widgetbook CLI | |
run: dart pub global activate widgetbook_cli | |
- name: Push Widgetbook Build | |
working-directory: widgetbook | |
run: widgetbook cloud build push --api-key ${{ secrets.WIDGETBOOK_API_KEY }} |