diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9f5731..40821e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: channel: stable - run: flutter pub get #- run: flutter test - - run: flutter build apk --debug --flavor debugVariant ##--split-per-abi + - run: flutter build apk --debug ##--split-per-abi - name: Upload APK uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 600dd11..2a18365 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: - name: Build APK if: ${{ github.event.inputs.buildType == 'apk' }} - run: flutter build apk --flavor ciRelease --release + run: flutter build apk --release env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} KEY_ALIAS: ${{ secrets.KEY_ALIAS }} @@ -44,7 +44,7 @@ jobs: - name: Build AAB if: ${{ github.event.inputs.buildType == 'aab' }} - run: flutter build appbundle --flavor ciRelease --release + run: flutter build appbundle --release env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} KEY_ALIAS: ${{ secrets.KEY_ALIAS }} @@ -63,5 +63,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: AAB - path: build/app/outputs/bundle/ciReleaseRelease/*.aab + path: build/app/outputs/bundle/release/*.aab compression-level: 0 diff --git a/android/app/build.gradle b/android/app/build.gradle index 71e5fd8..325d22b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -58,10 +58,10 @@ android { release { if (System.getenv("CI") != null) { // CI environment, use keystore from environment variables - keyAlias System.getenv("KEY_ALIAS") - keyPassword System.getenv("KEY_PASSWORD") - storeFile file(System.getenv("KEYSTORE_PATH")) - storePassword System.getenv("KEYSTORE_PASSWORD") + storeFile file("keystore.jks") + storePassword System.getenv("KEYSTORE_PASSWORD") + keyAlias System.getenv("KEY_ALIAS") + keyPassword System.getenv("KEY_PASSWORD") } else { // Local environment, use key.properties def keystoreProperties = new Properties()