-
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
1 changed file
with
41 additions
and
0 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,41 @@ | ||
image: ghcr.io/cirruslabs/flutter | ||
|
||
stages: | ||
- build | ||
- widgetbook | ||
|
||
bootstrap: | ||
stage: build | ||
script: | ||
# Bootstrap App | ||
- flutter pub get | ||
- flutter gen-l10n | ||
# Bootstrap Widgetbook | ||
- cd widgetbook | ||
- flutter pub get | ||
- dart run build_runner build -d | ||
- flutter build web | ||
artifacts: | ||
paths: | ||
- widgetbook/build/web | ||
- widgetbook/.dart_tool/build/generated | ||
|
||
staging: | ||
stage: widgetbook | ||
needs: | ||
- bootstrap | ||
script: | ||
- dart pub global activate widgetbook_cli | ||
- export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
- cd widgetbook | ||
- widgetbook_staging cloud build push --api-key "$WIDGETBOOK_CLOUD_API_KEY_STAGING" | ||
|
||
production: | ||
stage: widgetbook | ||
needs: | ||
- bootstrap | ||
script: | ||
- dart pub global activate widgetbook_cli | ||
- export PATH="$PATH":"$HOME/.pub-cache/bin" | ||
- cd widgetbook | ||
- widgetbook cloud build push --api-key "$WIDGETBOOK_CLOUD_API_KEY" |