chore(cli): release v3.1.1 (#1216) #1
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: Push Build to Widgetbook Cloud | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
push-build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: sandbox | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Install Melos | |
run: flutter pub global activate melos | |
- name: Get packages | |
run: melos bootstrap --scope=sandbox --include-dependencies | |
- name: Run build runner | |
run: dart run build_runner build -d | |
- name: Build Website | |
run: flutter build web -t lib/widgetbook.dart | |
- name: Install Widgetbook CLI | |
run: dart pub global activate --source path ../packages/widgetbook_cli | |
- name: Push Build | |
run: widgetbook cloud build push --api-key ${{ secrets.WIDGETBOOK_CLOUD_API_KEY }} |