diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bc3888..1f9624e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,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 @@ -82,4 +84,13 @@ jobs: echo "false" else echo "true" - fi \ No newline at end of file + fi + + - name: Upload to Google Play + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} + packageName: net.helcel.cowspent + releaseFiles: app/build/outputs/bundle/signedRelease/app-signedRelease.aab + tracks: 'internal' # ${{ startsWith(github.ref, 'refs/tags/') && 'production' || 'beta' }} + status: completed \ No newline at end of file