Skip to content

Commit

Permalink
attempt keystore decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
waozixyz committed Oct 3, 2023
1 parent 166d844 commit 79ade98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/flutter_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
FLUTTER_KEY_ALIAS: ${{ secrets.FLUTTER_KEY_ALIAS }}
FLUTTER_KEY_PASSWORD: ${{ secrets.FLUTTER_KEY_PASSWORD }}
FLUTTER_STORE_PASSWORD: ${{ secrets.FLUTTER_STORE_PASSWORD }}
FLUTTER_STORE_FILE: ${{ secrets.FLUTTER_STORE_FILE }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -51,6 +50,9 @@ jobs:
with:
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Decode Keystore
run: echo "${{ secrets.FLUTTER_STORE_FILE }}" | base64 -d > android/app/release-key.jks

- name: Install Dependencies
run: flutter pub get

Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {
release {
keyAlias System.getenv('FLUTTER_KEY_ALIAS') ?: ""
keyPassword System.getenv('FLUTTER_KEY_PASSWORD') ?: ""
storeFile file(System.getenv('FLUTTER_STORE_FILE') ?: "")
storeFile "release-key.jks"
storePassword System.getenv('FLUTTER_STORE_PASSWORD') ?: ""
}
}
Expand Down

0 comments on commit 79ade98

Please sign in to comment.