From cedd9da3f469c754eb77df5029aded0421aaace7 Mon Sep 17 00:00:00 2001 From: breval Date: Tue, 14 May 2024 18:21:16 +0200 Subject: [PATCH 1/4] Update appbundle build command to use release configuration Changed the appbundle build command in the CI/CD workflow from using debug configuration to release configuration for better performance. --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 2642767..155b379 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -18,7 +18,7 @@ jobs: flutter pub get dart pub outdated dart format - flutter build appbundle --debug + flutter build appbundle --release From 400e43284e7d4c217911e977f72a798f773f10d1 Mon Sep 17 00:00:00 2001 From: breval Date: Tue, 14 May 2024 18:22:23 +0200 Subject: [PATCH 2/4] Update workflow job name and step label Changed the job name from "build-android" to "try-ci" for clarity. Adjusted the step label accordingly. --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 155b379..a7e7570 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,7 +1,7 @@ name: build on: [ pull_request ] jobs: - build-android: + try-ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 8089b2de1da1a6afbc9b2dda196a5afdf9e8775e Mon Sep 17 00:00:00 2001 From: breval Date: Tue, 14 May 2024 18:23:04 +0200 Subject: [PATCH 3/4] try-ci --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index a7e7570..7498f15 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,4 +1,4 @@ -name: build +name: try-ci on: [ pull_request ] jobs: try-ci: From 2cc2982b19b3358f46ec47b3533304d634f84615 Mon Sep 17 00:00:00 2001 From: breval Date: Tue, 14 May 2024 18:47:29 +0200 Subject: [PATCH 4/4] Update CI/CD workflow for pull requests and JDK 21 setup. - Updated event trigger to 'pull_request' - Added steps to set up JDK 21 - Included tasks for keystore decryption and key.properties setup --- .github/workflows/cicd.yml | 39 ++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 7498f15..f45f8e1 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,27 +1,42 @@ name: try-ci -on: [ pull_request ] + +on: [pull_request] + jobs: try-ci: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' - - uses: subosito/flutter-action@v2 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 with: flutter-version: '3.22.0' channel: stable - - name: Build apk + + - name: Decrypt and set up keystore + run: | + echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/googlekeys.jks + + - name: Set up key.properties + run: | + echo "${{ secrets.KEY_PROPERTY }}" > android/key.properties + + - name: Build APK run: | flutter pub get - dart pub outdated - dart format flutter build appbundle --release - - - - - +# - name: Upload build artifacts +# uses: actions/upload-artifact@v2 +# with: +# name: app-release.aab +# path: build/app/outputs/bundle/release/app-release.aab