File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 7676 - name : Build with Gradle
7777 run : chmod 755 ./gradlew && ./gradlew assemble${{ inputs.buildType }}
7878
79+ - name : Bundle with Gradle (only PlayStore builds)
80+ if : github.event.inputs.buildType == 'Playstore'
81+ run : chmod 755 ./gradlew && ./gradlew bundle${{ inputs.buildType }}
82+
7983 - name : Get release name
8084 if : success() && github.ref == 'refs/heads/master'
8185 id : release-name
@@ -155,6 +159,25 @@ jobs:
155159 env :
156160 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157161
162+ - name : Find AAB
163+ if : github.event.inputs.buildType == 'Playstore'
164+ id : find_aab
165+ run : |
166+ AAB_PATH=$(find app/build/outputs/bundle/playstore -name "*.aab" | head -n 1)
167+ echo "AAB_PATH=$AAB_PATH" >> $GITHUB_ENV
168+
169+ - name : Upload to Google Play
170+ if : github.ref == 'refs/heads/master' && github.event.inputs.buildType == 'Playstore'
171+ uses : r0adkll/upload-google-play@v1
172+ with :
173+ serviceAccountJsonPlainText : ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}
174+ packageName : com.dergoogler.mmrl
175+ releaseFiles : ${{ env.AAB_PATH }}
176+ track : beta
177+ status : draft
178+ inAppUpdatePriority : 3
179+ userFraction : 0.1
180+
158181
159182 - name : Upload built apk
160183 if : success() && github.ref == 'refs/heads/master'
You can’t perform that action at this time.
0 commit comments