Skip to content

1.18.01+11801

1.18.01+11801 #11

Workflow file for this run

name: Generate Production AAB
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: πŸ“š Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3"
- name: πŸ“¦ Install Dependencies
run: flutter packages get
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed lib test
- name: βš™οΈ Code Generation
run: dart run build_runner build --delete-conflicting-outputs
- name: πŸ•΅οΈ Analyze
run: flutter analyze lib
- name: βš™οΈ Download Android keystore
id: android_keystore
uses: timheuer/[email protected]
with:
fileName: key.jks
encodedString: ${{ secrets.PROD_KEYSTORE }}
- name: πŸ” Create key.properties
run: |
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties
echo "storePassword=${{ secrets.PROD_KEYSTORE_PASSPHRASE }}" >> android/key.properties
echo "keyPassword=${{ secrets.PROD_KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.PROD_KEYSTORE_ALIAS }}" >> android/key.properties
- name: βš™οΈ Build AAB
run: flutter build appbundle --flavor production --target lib/main_production.dart -v
- name: βš™οΈ Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- name: βš™οΈ Cache bundle dependencies
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- name: βš™οΈ Download bundle dependencies
run: |
gem install bundler:2.0.2
bundle install
- name: πŸš€ Release to Google Play (Production)
env:
SUPPLY_PACKAGE_NAME: ${{ secrets.ANDROID_PACKAGE_NAME }}
SUPPLY_JSON_KEY_DATA: ${{ secrets.PLAY_STORE_CREDENTIALS }}
run: |
bundle exec fastlane supply \
--aab build/app/outputs/bundle/productionRelease/app-production-release.aab \
--track production