ci: rewrite workflows #32
Workflow file for this run
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 | |
on: push | |
jobs: | |
staging: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Bootstrap | |
uses: ./.github/actions/bootstrap | |
- name: Install Widgetbook CLI | |
run: dart pub global activate widgetbook_cli | |
- name: Upload Widgetbook | |
working-directory: widgetbook | |
run: widgetbook_staging cloud build push --api-key ${{ secrets.WIDGETBOOK_CLOUD_API_KEY_STAGING }} | |
production: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Bootstrap | |
uses: ./.github/actions/bootstrap | |
- name: Install Widgetbook CLI | |
run: dart pub global activate widgetbook_cli | |
- name: Upload Widgetbook | |
working-directory: widgetbook | |
run: widgetbook cloud build push --api-key ${{ secrets.WIDGETBOOK_CLOUD_API_KEY }} |