tsacdop-podcast-app-android/.github/workflows/flutter_build.yml

44 lines
1.5 KiB
YAML
Raw Normal View History

2020-10-28 13:10:43 +01:00
name: Flutter Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
2020-10-30 13:47:50 +01:00
java-version: "11.x"
2020-10-28 13:10:43 +01:00
- uses: subosito/flutter-action@v1
with:
channel: "stable" # 'dev', 'alpha', default to: 'stable'
- run: flutter pub get
- run: echo $ENCODED_KEYSTORE | base64 -di > android/app/keystore.jks
env:
ENCODED_KEYSTORE: ${{ secrets.ENCODED_KEYSTORE }}
- run: dart tool/env.dart
env:
API_KEY: ${{ secrets.API_KEY }}
PI_API_SECRET: ${{ secrets.PI_API_SECRET}}
PI_API_KEY: ${{ secrets.PI_API_KEY}}
2021-02-26 19:14:31 +01:00
- run: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/ --flavor=play
2020-10-28 13:10:43 +01:00
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
2021-01-28 17:30:44 +01:00
- run: flutter build appbundle --obfuscate --split-debug-info=debug/ --flavor=play
2020-10-28 13:10:43 +01:00
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
- uses: actions/upload-artifact@v2
with:
name: release-file
2021-01-28 17:50:32 +01:00
path: |
2021-02-15 12:40:30 +01:00
build/app/outputs/flutter-apk/*
2021-01-28 17:50:32 +01:00
build/app/outputs/bundle/playRelease/*