-
Notifications
You must be signed in to change notification settings - Fork 15
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
7 changed files
with
96 additions
and
178 deletions.
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,28 @@ | ||
name: Bootstrap | ||
description: Bootstrap the app and Widgetbook, then build Widgetbook | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
|
||
- name: Bootstrap App | ||
shell: bash | ||
run: | | ||
flutter pub get | ||
flutter gen-l10n | ||
- name: Bootstrap Widgetbook | ||
working-directory: widgetbook | ||
shell: bash | ||
run: | | ||
flutter pub get | ||
dart run build_runner build -d | ||
- name: Build Widgetbook | ||
working-directory: widgetbook | ||
shell: bash | ||
run: flutter build web |
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,32 @@ | ||
name: Deploy Demo | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
# Only run it if the service account is set, | ||
# to avoid running it on internal forks (e.g. e2e) | ||
if: ${{ secrets.STORAGE_SERVICE_ACCOUNT != '' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Bootstrap | ||
uses: ./.github/actions/bootstrap | ||
|
||
- name: Authenticate Service Account | ||
uses: google-github-actions/[email protected] | ||
with: | ||
credentials_json: ${{ secrets.STORAGE_SERVICE_ACCOUNT }} | ||
|
||
- name: Deploy to demo.widgetbook.io | ||
uses: google-github-actions/[email protected] | ||
with: | ||
path: widgetbook/build/web | ||
destination: demo.widgetbook.io | ||
parent: false |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
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 }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.