-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
36 lines (33 loc) · 1.09 KB
/
bitbucket-pipelines.yml
File metadata and controls
36 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
image: ghcr.io/cirruslabs/flutter
pipelines:
default:
- step:
name: 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:
- widgetbook/build/web/**
- widgetbook/.dart_tool/build/generated/**
- step:
name: Widgetbook Staging
deployment: staging
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_STAGING" --api-url "$WIDGETBOOK_CLOUD_API_URL_STAGING"
- step:
name: Widgetbook Production
deployment: production
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"