a-mabe is building the Android app bundle 🚀 #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: Build Flutter App | |
run-name: ${{ github.actor }} is building the Android app bundle 🚀 | |
on: push | |
# on: | |
# pull_request: | |
# types: | |
# - opened | |
# - reopened | |
# - synchronize | |
# - ready_for_review | |
# branches: | |
# - 'main' | |
# paths-ignore: | |
# - '**.md' | |
# - 'doc/**' | |
# - '.git/' | |
# - '.vscode/' | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
environment: production | |
permissions: | |
contents: write | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v3 | |
# Set up Flutter. | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: "stable" | |
- run: flutter doctor -v | |
# Checkout the repository code and get packages. | |
- name: Checkout app code | |
uses: actions/checkout@v3 | |
- run: flutter pub get | |
- name: Download Android keystore | |
id: android_keystore | |
uses: timheuer/[email protected] | |
with: | |
fileName: upload-keystore.jks | |
encodedString: ${{ secrets.KEYSTORE_FILE_BASE64 }} | |
- name: Create key.properties | |
run: | | |
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties | |
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/key.properties | |
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties | |
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties | |
- name: Android Release Build | |
run: flutter build appbundle | |
# - name: Build APK | |
# run: flutter build apk --split-per-abi --release | |
# - name: Build APP BUNDLE | |
# run: flutter build appbundle | |
# - name: Create Release | |
# uses: ncipollo/[email protected] | |
# with: | |
# artifacts: "build/app/outputs/apk/release/*.apk, build/app/outputs/bundle/release/*.aab" | |
# - name: Upload a Build Artifact | |
# uses: actions/[email protected] | |
# with: | |
# name: release-apk | |
# path: build/app/outputs/apk/ | |
# Build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Code | |
# uses: actions/checkout@v3 | |
# - name: Setup Java | |
# uses: actions/setup-java@v2 | |
# with: | |
# distribution: 'zulu' | |
# java-version: '11' | |
# - uses: subosito/flutter-action@v2 | |
# with: | |
# channel: 'stable' | |
# - name: Build AppBundle | |
# run: flutter pub get && flutter build appbundle | |
# - name: Upload AppBundle | |
# uses: actions/[email protected] | |
# with: | |
# name: release | |
# path: build/app/outputs/bundle/release/app-release.aab | |
# - name: Create Release | |
# uses: ncipollo/[email protected] | |