Skip to content

Commit

Permalink
Update flutter-android-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dapucla authored Sep 12, 2024
1 parent a8eddb5 commit 1072627
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/flutter-android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1072627

Please sign in to comment.