1.18.01+11801 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |