From 1072627205fd35e72f7a0b6241e14c8838092e9e Mon Sep 17 00:00:00 2001 From: Daniil Alekseev <55713843+Dapucla@users.noreply.github.com> Date: Thu, 12 Sep 2024 21:41:19 +0300 Subject: [PATCH] Update flutter-android-ci.yml --- .github/workflows/flutter-android-ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flutter-android-ci.yml b/.github/workflows/flutter-android-ci.yml index dae145b..47fa8ef 100644 --- a/.github/workflows/flutter-android-ci.yml +++ b/.github/workflows/flutter-android-ci.yml @@ -17,10 +17,10 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Set up JDK 22 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: - java-version: '22' + java-version: '17' distribution: 'temurin' - name: Set up Flutter @@ -44,13 +44,19 @@ jobs: - name: Set environment variables from GitHub Secrets run: | echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> $GITHUB_ENV + # Add any other environment variables here shell: bash + - name: Set up .env file (if applicable) + run: | + echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env + shell: bash + - name: Build APK - run: flutter build apk --release + run: flutter build apk --release --no-shrink - name: Build AAB - run: flutter build appbundle --release + run: flutter build appbundle --release --no-shrink - name: Upload APK uses: actions/upload-artifact@v3