From 9437d370175dfd2c8868833285dfd30884c7a9b7 Mon Sep 17 00:00:00 2001 From: stonegate Date: Sun, 11 Oct 2020 01:00:47 +0800 Subject: [PATCH] Add github action config. --- .github/workflows/flutter_build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/flutter_build.yml diff --git a/.github/workflows/flutter_build.yml b/.github/workflows/flutter_build.yml new file mode 100644 index 0000000..9fb3d2d --- /dev/null +++ b/.github/workflows/flutter_build.yml @@ -0,0 +1,26 @@ +name: Flutter Build +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: "12.x" + - uses: subosito/flutter-action@v1 + with: + channel: "stable" # 'dev', 'alpha', default to: 'stable' + - run: flutter pub get + - run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks + - run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV + - run: dart tool/env.dart + - run: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/ + - run: flutter build appbundle --obfuscate --split-debug-info=debug/ + - uses: actions/upload-artifact@v1 + with: + name: release-apk + path: build/app/outputs/