Skip to content

Commit 72454c2

Browse files
Automate upload to Google Play
This commit updates the `android-release_ci.yml` workflow to automatically upload release builds to the Google Play Store. A new step, "Upload to Google Play," is added to the release job, which uses the `r0adkll/upload-google-play@v1` action. This step uploads the generated AAB file to the internal track. The workflow now also includes minor formatting adjustments.
1 parent 6f6701f commit 72454c2

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/android-release_ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ jobs:
6666
shell: bash
6767
run: |
6868
set -e
69-
69+
7070
APK=$(find app/build/outputs/apk -name "*.apk" -type f | head -n 1)
7171
AAB=$(find app/build/outputs/bundle -name "*.aab" -type f | head -n 1)
7272
MAPPING=$(find app/build/outputs/mapping -name "mapping.txt" -type f | head -n 1)
73-
73+
7474
echo "Detected APK: $APK"
7575
echo "Detected AAB: $AAB"
7676
echo "Detected mapping: $MAPPING"
77-
77+
7878
if [[ -z "$APK" || -z "$AAB" ]]; then
7979
echo "❌ APK or AAB not found"
8080
exit 1
8181
fi
82-
82+
8383
echo "apk=$APK" >> "$GITHUB_OUTPUT"
8484
echo "aab=$AAB" >> "$GITHUB_OUTPUT"
8585
echo "mapping=$MAPPING" >> "$GITHUB_OUTPUT"
@@ -112,6 +112,15 @@ jobs:
112112
tag: ${{ github.ref }}
113113
overwrite: true
114114

115+
- name: Upload to Google Play
116+
uses: r0adkll/upload-google-play@v1
117+
with:
118+
serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}
119+
packageName: app.mlauncher
120+
releaseFiles: ${{ steps.detect_artifacts.outputs.aab }}
121+
track: internal
122+
status: completed
123+
115124
- name: Set up Node.js
116125
uses: actions/setup-node@v6
117126
with:
@@ -123,4 +132,4 @@ jobs:
123132
DISCORD_ROLEID: ${{ secrets.DISCORD_ROLEID }}
124133
run: |
125134
# Run your Discord release script
126-
node post-discord-release.js
135+
node post-discord-release.js

0 commit comments

Comments
 (0)