From a81c830097afef269eee28bbc25ba11fee4206e3 Mon Sep 17 00:00:00 2001 From: Alessio Luciani Date: Thu, 9 Apr 2020 14:40:15 +0200 Subject: [PATCH 1/2] Add iOS and Android app bundle builds Solving issue https://github.com/subosito/flutter-action/issues/7 . --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index efa626f..9122d55 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,42 @@ steps: - run: flutter build apk ``` +Build for iOS too (macOS only): + +```yaml +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1 + with: + flutter-version: '1.9.1+hotfix.6' + - run: flutter pub get + - run: flutter test + - run: flutter build apk + - run: flutter build ios --release --no-codesign +``` + +Use app bundle, instead of APK: + +```yaml +steps: +- uses: actions/checkout@v1 +- uses: actions/setup-java@v1 + with: + java-version: '12.x' +- uses: subosito/flutter-action@v1 + with: + flutter-version: '1.9.1+hotfix.6' +- run: flutter pub get +- run: flutter test +- run: flutter build appbundle +``` + Use latest release for particular channel: ```yaml From 5d4e01ab3b31a03960bafab5f4d0d6445baf8377 Mon Sep 17 00:00:00 2001 From: Alessio Luciani Date: Fri, 19 Jun 2020 16:13:08 +0200 Subject: [PATCH 2/2] Add build instructions for the web --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 9122d55..87d0720 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,23 @@ steps: - run: flutter build appbundle ``` +Build for the web: + +```yaml +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: subosito/flutter-action@v1 + with: + channel: beta + - run: flutter config --enable-web + - run: flutter pub get + - run: flutter test + - run: flutter build web +``` + Use latest release for particular channel: ```yaml