Files
comaps/.forgejo/workflows/android-release-metadata.yaml
Konstantin Pastbin 44eca9ab5e [android] Streamline Google Play metadata handling
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-05-25 12:30:14 +02:00

36 lines
1.0 KiB
YAML

name: Android Release Metadata
on:
workflow_dispatch: # Manual trigger
env:
JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64 # Java 17 is required for Android Gradle 8 plugin
jobs:
android-release-metadata:
name: Upload Google Play metadata
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout sources
# TODO: use shallow (and sparse?) checkout
uses: actions/checkout@v4
# - name: Parallel submodules checkout
# shell: bash
# run: git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20))
- name: Restore release keys
shell: bash
run: |
echo "$PRIVATE_H" | base64 -d > private.h
echo "$GOOGLE_PLAY_JSON" | base64 -d > android/app/google-play.json
env:
PRIVATE_H: ${{ secrets.PRIVATE_H }}
GOOGLE_PLAY_JSON: ${{ secrets.GOOGLE_PLAY_JSON }}
- name: Upload
shell: bash
run: ./gradlew publishGoogleReleaseListing
working-directory: android
timeout-minutes: 5