Skip to content

Commit 44e2c90

Browse files
authored
ci(play): clean up workflow warnings (#43)
- Bump official actions to current latest (Node 24-compatible): - actions/checkout v4.2.2 -> v6.0.2 - actions/setup-java v4.7.1 -> v5.2.0 - actions/upload-artifact stays at v4.6.2 (current) - gradle/actions/setup-gradle v4.3.0 -> v6.1.0 Resolves the runner's 'Node.js 20 actions are deprecated' warning ahead of GitHub forcing Node 24 on June 2nd, 2026. - Migrate r0adkll/upload-google-play input 'track' -> 'tracks'. The action emits 'WARNING!! track is deprecated and will be removed in a future release. Please migrate to tracks'. The new input accepts the same string for a single track, so behavior is unchanged. - Upload native debug symbols to Play. app/build.gradle already sets ndk.debugSymbolLevel = 'FULL' for the release buildType, so AGP produces app/build/outputs/native-debug-symbols/prodRelease/native-debug-symbols.zip. Pass it through the action's 'debugSymbols' input so Play can symbolicate native crashes/ANRs. Resolves the Play Console warning: 'This App Bundle contains native code, and you have not uploaded debug symbols.'
1 parent 4afaa18 commit 44e2c90

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/publish-play.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
# androidGitVersion needs full history + tags to compute versionCode/versionName.
3636
fetch-depth: 0
3737

3838
- name: Set up JDK 17
39-
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
39+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
4040
with:
4141
distribution: temurin
4242
java-version: '17'
4343

4444
- name: Set up Gradle
45-
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
45+
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
4646

4747
- name: Decode upload keystore
4848
env:
@@ -73,6 +73,12 @@ jobs:
7373
fi
7474
echo "aab=$AAB_PATH" >> "$GITHUB_OUTPUT"
7575
76+
# AGP emits native-debug-symbols.zip when buildTypes.release sets
77+
# ndk.debugSymbolLevel = 'FULL' (it does in app/build.gradle). Upload
78+
# it alongside the AAB so Play can symbolicate native crashes.
79+
SYMBOLS_PATH=$(find app/build/outputs/native-debug-symbols/prodRelease -name 'native-debug-symbols.zip' 2>/dev/null | head -n1)
80+
echo "symbols=$SYMBOLS_PATH" >> "$GITHUB_OUTPUT"
81+
7682
PACKAGE_NAME=$(./gradlew -q :app:properties \
7783
| awk -F': ' '/^namespace: /{print $2; exit}')
7884
if [ -z "$PACKAGE_NAME" ]; then
@@ -99,5 +105,6 @@ jobs:
99105
serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}
100106
packageName: ${{ steps.artifacts.outputs.package }}
101107
releaseFiles: ${{ steps.artifacts.outputs.aab }}
102-
track: ${{ env.PLAY_TRACK }}
108+
debugSymbols: ${{ steps.artifacts.outputs.symbols }}
109+
tracks: ${{ env.PLAY_TRACK }}
103110
status: completed

0 commit comments

Comments
 (0)