mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-17 10:59:29 +01:00
Merge pull request #136 from krawieck/feature/ci-bundle
This commit is contained in:
commit
66d55d615b
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -42,6 +42,7 @@ jobs:
|
||||
run: flutter test
|
||||
|
||||
- name: Inject keystore
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
working-directory: android
|
||||
env:
|
||||
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||
@ -56,6 +57,17 @@ jobs:
|
||||
|
||||
echo $SIGNING_KEY | base64 -d | tee ~/key.jks >/dev/null
|
||||
|
||||
- name: Generate appbundle
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: flutter build appbundle
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: android-appbundle
|
||||
path: |
|
||||
build/app/outputs/bundle/release/app-release.aab
|
||||
|
||||
- name: Android build
|
||||
run: flutter build apk --split-per-abi
|
||||
|
||||
|
@ -51,19 +51,23 @@ android {
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
signingConfig signingConfigs.release
|
||||
} else {
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
|
Loading…
Reference in New Issue
Block a user