Skip to content

Merge pull request #230 from flow-mn/develop #10

Merge pull request #230 from flow-mn/develop

Merge pull request #230 from flow-mn/develop #10

name: Deploy Beta build for Android
on:
push:
branches:
- "beta"
jobs:
build:
runs-on: "ubuntu-latest"
environment: Android release
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4.0.0
with:
distribution: "zulu"
java-version: "17"
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter pub get
- name: Run tests
run: |
bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
flutter test
- name: Setup secrets
run: |
echo "${{ secrets.SIGNING_KEY_PROPERTIES }}" > ./android/key.properties
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > ./android/flow-upload-keystore.jks
- name: Build appbundle
run: flutter build appbundle --release --no-tree-shake-icons
- name: Deploy to Open Testing
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
packageName: mn.flow.flow
releaseFiles: build/app/outputs/bundle/release/app-release.aab
track: beta
- name: Clean up
run: rm -rf ./android/key.properties ./android/flow-upload-keystore.jks