diff --git a/.github/workflows/flutter_build_release.yml b/.github/workflows/flutter_build_release.yml index 64718d7..3500859 100644 --- a/.github/workflows/flutter_build_release.yml +++ b/.github/workflows/flutter_build_release.yml @@ -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 @@ -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 diff --git a/android/app/build.gradle b/android/app/build.gradle index b420114..da64bcc 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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') ?: "" } }