diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f4ac86..7b3e800 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,7 +69,9 @@ jobs: else VERSION_NAME="${VERSION_BASE}" fi - ./gradlew assembleSignedRelease -PVERSION_CODE=$VERSION_CODE -PVERSION_NAME=$VERSION_NAME + ./gradlew bundleSignedRelease assembleSignedRelease -PVERSION_CODE=$VERSION_CODE -PVERSION_NAME=$VERSION_NAME + # ./gradlew assembleSignedRelease -PVERSION_CODE=$VERSION_CODE -PVERSION_NAME=$VERSION_NAME + # ./gradlew bundleSignedRelease -PVERSION_CODE=$VERSION_CODE -PVERSION_NAME=$VERSION_NAME - name: Upload APK uses: actions/upload-artifact@v7 @@ -90,3 +92,16 @@ jobs: else echo "true" fi + + + - name: Build Release AAB + run: ./gradlew bundleRelease + + - name: Upload to Google Play + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJson: ${{ secrets.SERVICE_ACCOUNT_JSON }} + packageName: net.helcel.fidelity + releaseFiles: app/build/outputs/bundle/signedRelease/app-signedRelease.aab + track: ${{ startsWith(github.ref, 'refs/tags/') && 'production' || 'beta' }} + status: completed