Skip to content

Build CI

Build CI #88

Workflow file for this run

name: Build CI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Save the store key properties to android/key.properties
env:
ANDROID_STORE_KEY_PROPERTIES: ${{ secrets.ANDROID_STORE_KEY_PROPERTIES }}
run: |
echo -en $ANDROID_STORE_KEY_PROPERTIES > android/key.properties
- name: Decode the store key to android/GooglePlaystore.jks
env:
GOOGLE_PLAYSTORE_JKS_BASE64: ${{ secrets.GOOGLE_PLAYSTORE_JKS_BASE64 }}
run: |
echo -en $GOOGLE_PLAYSTORE_JKS_BASE64 | base64 --decode > android/GooglePlaystore.jks
- run: pwd
- run: wc android/key.properties
- run: TEST=$(grep storeFile android/key.properties)
- run: echo $TEST
- run: ls android
- run: flutter --version
- run: flutter pub get
- run: flutter build apk
- run: flutter build appbundle