Update github action config.

This commit is contained in:
stonegate 2020-10-11 02:11:28 +08:00
parent c97a838ea3
commit 7d3dd9824a
1 changed files with 12 additions and 5 deletions

View File

@ -14,6 +14,11 @@ jobs:
- 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
- run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> ${HOME}/.profile
- run: dart tool/env.dart
- run: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
env:
API_KEY: ${{ secrets.API_KEY }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
@ -21,12 +26,14 @@ jobs:
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
PI_API_SECRET: ${{ secrets.PI_API_SECRET}}
PI_API_KEY: ${{ secrets.PI_API_KEY}}
- run: flutter pub get
- run: echo $ENCODED_KEYSTORE | base64 -di > android/app/keystore.jks
- run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> ${HOME}/.profile
- run: dart tool/env.dart
- run: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
- run: flutter build appbundle --obfuscate --split-debug-info=debug/
env:
API_KEY: ${{ secrets.API_KEY }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
PI_API_SECRET: ${{ secrets.PI_API_SECRET}}
PI_API_KEY: ${{ secrets.PI_API_KEY}}
- uses: actions/upload-artifact@v1
with:
name: release-apk