Skip to content

Commit

Permalink
use melos to build the app
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacioni committed Jul 17, 2023
1 parent bc74390 commit 9a6b357
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flutter-web-publish-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6'
- run: cd apps/weekly_menu_app/
- run: flutter pub get
- run: dart pub global activate melos
#- run: flutter test
- run: flutter build web --profile #--web-renderer html --release
- run: flutter build apk --release
- run: mkdir ./build/web/apk
- run: mv ./build/app/outputs/flutter-apk/app-release.apk ./build/web/apk/weeklymenu-release.apk
- run: mv ./apps/weekly_menu_app/build/app/outputs/flutter-apk/app-release.apk ./apps/weekly_menu_app/build/web/apk/weeklymenu-release.apk
- name: FTP Deploy
uses: SamKirkland/[email protected]
with:
Expand Down
6 changes: 6 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ scripts:
install:
run: melos exec -c 1 --flutter -- "flutter pub get"
description: Clean all projects
build:android:release:
run: cd apps/weekly_menu_app/ && flutter build apk --release
description: Build release Android version
build:web:release:
run: cd apps/weekly_menu_app/ && flutter build web --profile
description: Build release Web version

0 comments on commit 9a6b357

Please sign in to comment.