Skip to content

Add screenshot to README.md #2

Add screenshot to README.md

Add screenshot to README.md #2

Workflow file for this run

name: Build & upload to Firebase App Distribution
on:
push:
branches:
- dev
jobs:
build_apk:
name: Build Flutter (Android)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Write key.properties file
run: |
echo $KEY_PROPERTIES | base64 -d > key.properties
shell: bash
env:
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }}
- name: Create keystore folder
run: mkdir -p android/keystore
- name: Write ethical_scanner_release.keystore file
env:
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
run: |
echo $RELEASE_KEYSTORE | base64 --decode > android/keystore/ethical_scanner_release.keystore
- name: Write ethical_scanner_debug.keystore file
run: |
echo $DEBUG_KEYSTORE | base64 -d > android/keystore/ethical_scanner_debug.keystore
shell: bash
env:
DEBUG_KEYSTORE: ${{ secrets.DEBUG_KEYSTORE }}
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk --release
- name: Upload APK
uses: actions/upload-artifact@master
with:
name: apk-build
path: build/app/outputs/apk/release
beta_apk:
name: Upload Android Beta to Firebase App Distribution
needs: [ build_apk ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: apk-build
- name: Upload APK
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_ANDROID_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: testers
releaseNotes: "Ethical Scanner Android Application Build"
file: app-release.apk