Skip to content

V1.5.0

V1.5.0 #21

name: Build and Deploy App Bundle
on:
push:
branches:
- main
jobs:
build:
name: Build Flutter App Bundle
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.4'
- name: Install dependencies
run: flutter pub get
- name: Decode and write google-services.json
run: |
echo "${{ secrets.GOOGLE_SERVICES_JSON }}" | base64 --decode > android/app/google-services.json
- name: Decode and add the signing key
run: |
echo "${{ secrets.MY_RELEASE_KEY }}" | base64 --decode > android/app/my-release-key.jks
- name: Debug keystore
run: |
ls -la android/app
- name: Set up environment for signing
run: |
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
echo "storeFile=my-release-key.jks" >> android/key.properties
- name: Debug key properties
run: |
ls -la android/
- name: Clean Flutter build
run: flutter clean
- name: Build app bundle
run: flutter build appbundle --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: app-release.aab
path: build/app/outputs/bundle/release/app-release.aab