From 34a153e344a003cc1b1f40aab375e10272477f7c Mon Sep 17 00:00:00 2001 From: Aunali321 <48486084+Aunali321@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:08:02 +0530 Subject: [PATCH 1/3] Create release-build.yml --- .github/workflows/release-build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release-build.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 00000000..69c7163e --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,26 @@ +name: Flutter CI + +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: 'beta' + - run: flutter pub get + - run: flutter format --set-exit-if-changed . + - run: flutter analyze . + - run: flutter build apk + - uses: actions/upload-artifact@v1 + with: + name: release-apk + path: build/app/outputs/apk/release/app-release.apk From 591c025d2d8306f4420eb42d2022bbef403c04b1 Mon Sep 17 00:00:00 2001 From: Aunali321 <48486084+Aunali321@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:13:39 +0530 Subject: [PATCH 2/3] fix: use stable flutter version. --- .github/workflows/release-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 69c7163e..4ffca8f5 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -15,7 +15,7 @@ jobs: java-version: '12.x' - uses: subosito/flutter-action@v1 with: - channel: 'beta' + channel: 'stable' - run: flutter pub get - run: flutter format --set-exit-if-changed . - run: flutter analyze . From 884199f2fa2c9e8cd559e964d553077036a74eff Mon Sep 17 00:00:00 2001 From: Aunali321 <48486084+Aunali321@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:22:08 +0530 Subject: [PATCH 3/3] remove flutter analyze. --- .github/workflows/release-build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 4ffca8f5..ddd22e4a 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -18,7 +18,6 @@ jobs: channel: 'stable' - run: flutter pub get - run: flutter format --set-exit-if-changed . - - run: flutter analyze . - run: flutter build apk - uses: actions/upload-artifact@v1 with: