Skip to content

Commit

Permalink
release apk cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
pr-1 committed Jul 6, 2020
1 parent 51975aa commit 5836b2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ jobs:
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.17.0'
- run: flutter pub get
- run: flutter build apk --split-per-abi
env:
KEY_JKS: ${{ secrets.KEY_JKS }}
KEY_PASSWORD: ${{ secrets.ALIAS_PASSWORD }}
ALIAS_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: echo $KEY_JKS > key.jks && flutter pub get && flutter build apk --release --split-per-abi
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
Expand Down
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ android {

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
storeFile keystoreProperties['storeFile']
storePassword = "$System.env.KEY_PASSWORD"
keyAlias = "key"
keyPassword = "$System.env.ALIAS_PASSWORD"
}
}

Expand Down

0 comments on commit 5836b2f

Please sign in to comment.