[CI]: add android build key + signing process

This commit is contained in:
2026-05-23 21:54:40 +08:00
parent cb8cb48a60
commit 8b7acad257
3 changed files with 32 additions and 1 deletions
+10 -1
View File
@@ -48,9 +48,18 @@ jobs:
- name: Build plugin APK
run: gradle --no-daemon -p android-plugin :app:assembleRelease
env:
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Verify signed APK
run: |
APKSIGNER="$(find "$ANDROID_HOME/build-tools" -name apksigner -type f | sort -V | tail -n 1)"
"$APKSIGNER" verify --verbose android-plugin/app/build/outputs/apk/release/app-release.apk
- name: Upload plugin APK
uses: actions/upload-artifact@v4
with:
name: MobileGL-plugin-${{ env.date_today }}-${{ env.short_sha }}
path: android-plugin/app/build/outputs/apk/release/*.apk
path: android-plugin/app/build/outputs/apk/release/app-release.apk