Skip to content

Commit

Permalink
ci: add gitlab pipeline (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
yousinix authored Oct 1, 2024
1 parent eeb759b commit d5e15a8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .gitlab-ci.yml
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"

0 comments on commit d5e15a8

Please sign in to comment.