Android Notifications #63
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: Android Release | |
# Controls when the action will run. | |
# This could probably use improvement | |
on: | |
issues: | |
types: [closed] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
environment: Staging | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: dart-lang/[email protected] | |
- run: dart pub global activate fvm | |
- run: echo $KEY_JKS | base64 -d > android/key.jks | |
env: | |
KEY_JKS: ${{ secrets.KEY_JKS }} | |
- run: fvm install | |
- run: fvm flutter pub get | |
- run: fvm flutter analyze | |
continue-on-error: true | |
- run: fvm flutter test | |
- run: fvm flutter build apk --release | |
env: | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
ALIAS_PASSWORD: ${{ secrets.ALIAS_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: release-apk | |
path: build/app/outputs/apk/release/app-release.apk |