Skip to content

Commit

Permalink
ci: fix dart_define.json in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kosukesaigusa committed Sep 5, 2023
1 parent 45f84ad commit fbc3da6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release_to_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ jobs:
- name: flutter pub get (mottai_flutter_app)
run: cd packages/mottai_flutter_app && flutter pub get

- name: Create dev-dart-define.json from GitHub secret
run: echo '${{ secrets.DEV_DART_DEFINE_JSON_STRING }}' > dev-dart-define.json

- name: Flutter Build IPA
run: |
cd packages/mottai_flutter_app
flutter build ipa --release \
--dart-define-from-file="dart_defines/dev-dart-define.json" \
--dart-define-from-file="dev-dart-define.json" \
-t "lib/main.dart" \
--build-name=$(grep 'version:' pubspec.yaml | cut -d ' ' -f 2 | cut -d '+' -f 1) \
--build-number=$GITHUB_RUN_NUMBER \
Expand Down

0 comments on commit fbc3da6

Please sign in to comment.