diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a8f691..9f042e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,18 +76,29 @@ jobs: app/build/outputs/apk/release/${{ env.APK_NAME }} app/build/outputs/apk/debug/${{ env.APK_NAME_DEBUG }} - - name: Upload to Google Play + - name: Upload to Google Play (Internal Testing) if: github.event_name == 'release' && env.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != '' env: GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} + packageName: com.matedroid + releaseFiles: app/build/outputs/bundle/release/app-release.aab + track: internal + status: completed + + - name: Upload to Google Play (Production) + if: github.event_name == 'release' && env.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != '' && vars.PLAY_STORE_PRODUCTION_ENABLED == 'true' + env: + GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} + uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} packageName: com.matedroid releaseFiles: app/build/outputs/bundle/release/app-release.aab track: production status: completed - changesNotSentForReview: false - name: Upload APKs and AAB as artifacts if: github.event_name == 'workflow_dispatch'