-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb15ba8
commit db0df6d
Showing
3 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,18 @@ inputs: | |
options: | ||
- dev | ||
- prod | ||
signingKeyBase64: | ||
required: true | ||
description: "Android signing key b64" | ||
alias: | ||
required: true | ||
description: "Android key alias" | ||
keyStorePassword: | ||
required: true | ||
description: "Android keystore password" | ||
keyPassword: | ||
required: true | ||
description: "Android key password" | ||
|
||
runs: | ||
using: "composite" | ||
|
@@ -38,27 +50,50 @@ runs: | |
mv build/app/outputs/flutter-apk/app-development-release.apk android.apk | ||
shell: bash | ||
|
||
- name: Upload apk (dev) | ||
if: ${{ !!inputs.store_artifacts && inputs.build_type == 'dev'}} | ||
uses: actions/[email protected] | ||
with: | ||
name: android | ||
path: android.apk | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
- name: Build appbundle (prod) | ||
if: ${{ inputs.build_type == 'prod' }} | ||
run: | | ||
flutter build appbundle --flavor production --release --build-name ${{ inputs.version }} --build-number ${{ inputs.build_version }} --target lib/main_production.dart | ||
mv build/app/outputs/bundle/productionRelease/app-production-release.aab android.aab | ||
shell: bash | ||
|
||
- name: Upload appbundle (prod) | ||
- name: Sign artifact | ||
if: ${{ !!inputs.store_artifacts }} | ||
uses: r0adkll/[email protected] | ||
id: sign_app | ||
with: | ||
releaseDirectory: . | ||
signingKeyBase64: ${{ inputs.signingKeyBase64 }} | ||
alias: ${{ inputs.alias }} | ||
keyStorePassword: ${{ inputs.keyStorePassword }} | ||
keyPassword: ${{ inputs.keyPassword }} | ||
|
||
- name: Move appbundle | ||
if: ${{ !!inputs.store_artifacts && inputs.build_type == 'prod'}} | ||
run: | | ||
mv ${{steps.sign_app.outputs.signedReleaseFile}} android.aab | ||
shell: bash | ||
|
||
- name: Upload appbundle | ||
if: ${{ !!inputs.store_artifacts && inputs.build_type == 'prod'}} | ||
uses: actions/[email protected] | ||
with: | ||
name: android | ||
path: android.aab | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
- name: Move apk | ||
if: ${{ !!inputs.store_artifacts && inputs.build_type != 'prod'}} | ||
run: | | ||
mv ${{steps.sign_app.outputs.signedReleaseFile}} android.apk | ||
shell: bash | ||
|
||
- name: Upload apk | ||
if: ${{ !!inputs.store_artifacts && inputs.build_type != 'prod'}} | ||
uses: actions/[email protected] | ||
with: | ||
name: android | ||
path: android.apk | ||
retention-days: 1 | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,21 +45,11 @@ jobs: | |
with: | ||
name: android | ||
|
||
- name: Sign Android appbundle | ||
uses: r0adkll/[email protected] | ||
id: sign_app | ||
with: | ||
releaseDirectory: . | ||
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE }} | ||
alias: ${{ secrets.ANDROID_KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} | ||
|
||
- name: Upload to Google Play Store | ||
uses: r0adkll/[email protected] | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT_JSON }} | ||
packageName: dk.analog.digitalclipcard | ||
releaseFiles: ${{ steps.sign_app.outputs.signedReleaseFile }} | ||
releaseFiles: android.aab | ||
track: internal | ||
status: draft |