Skip to content

Build CI

Build CI #83

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 $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 $GOOGLE_PLAYSTORE_JKS_BASE64 | base64 --decode > android/GooglePlaystore.jks
- run: pwd
- run: tail -n 1 android/key.properties
- run: echo $GOOGLE_PLAYSTORE_JKS_BASE64 | tail -c 10
- run: ls -R
- run: flutter --version
- run: flutter pub get
- run: flutter build apk
- run: flutter build appbundle