Skip to content

Commit 04cfd53

Browse files
authored
.
1 parent 6ade4d7 commit 04cfd53

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/telegram-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
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'

0 commit comments

Comments
 (0)