flutter: github: Build aab and change channel to stable

This commit is contained in:
Calcitem 2021-03-20 19:16:05 +08:00
parent 3115a8eebf
commit 3bdb785e29
1 changed files with 12 additions and 5 deletions

View File

@ -27,7 +27,7 @@ jobs:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
- uses: subosito/flutter-action@v1
with:
channel: 'dev' # or: 'dev' or 'beta'
channel: 'stable' # or: 'dev' or 'beta'
- name: Export environment valiables
run: export
@ -53,16 +53,23 @@ jobs:
# Build
- name: Build apk
run: cd src/ui/flutter_app; flutter build apk
run: cd src/ui/flutter_app; flutter build apk; flutter build appbundle
env:
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
ALIAS: ${{ secrets.ALIAS }}
KEY_PATH: key.jks
# Archive
- name: Archive production artifacts
# Archive apk
- name: Archive apk
uses: actions/upload-artifact@v2
with:
name: sanmill-flutter-apk-release
path: src/ui/flutter_app/build/app/outputs/flutter-apk/app-release.apk
path: src/ui/flutter_app/build/app/outputs/flutter-apk/app-release.apk
# Archive aab
- name: Archive aab
uses: actions/upload-artifact@v2
with:
name: sanmill-flutter-aab-release
path: src/ui/flutter_app/build/app/outputs/bundle/release/app-release.aab