-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
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
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: 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 }} |
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
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