feat: add design link #2
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: Upload review | |
on: | |
pull_request: | |
branches: | |
- staging | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Setup flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Run build runner | |
run: flutter pub 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 widgetbook_cli 3.0.0-rc.3 | |
- name: Upload Widgetbook | |
run: | | |
widgetbook publish --api-key UalVWAgpjvsWUIYm72r670amKcDDMQYH --repository $GITHUB_REPOSITORY --actor $GITHUB_ACTOR --branch $GITHUB_HEAD_REF --base-branch $GITHUB_BASE_REF --pr ${{ github.event.number }} --commit ${{ github.event.after }} |