v0.10.0 — Compose navigation graph + exhaustive previews #47
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Huawei AppGallery | |
| # Uploads the Gms-flavor release APK via AppGallery Connect's Publish API (community action). Gated | |
| # on HUAWEI_CLIENT_ID: no Connect API key exists yet, so this job no-ops until one is created in | |
| # AppGallery Connect (Users and permissions → API Key → Connect API). | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| HAS_SECRET: ${{ secrets.HUAWEI_CLIENT_ID != '' }} | |
| GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| if: env.HAS_SECRET == 'true' | |
| - name: Set up JDK 21 | |
| if: env.HAS_SECRET == 'true' | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| if: env.HAS_SECRET == 'true' | |
| uses: gradle/actions/setup-gradle@v6 | |
| - run: chmod +x ./gradlew | |
| if: env.HAS_SECRET == 'true' | |
| - name: Materialize signing secrets | |
| if: env.HAS_SECRET == 'true' | |
| run: | | |
| set -euo pipefail | |
| mkdir -p secrets | |
| if [ -n "${KEYSTORE_B64:-}" ]; then | |
| echo "$KEYSTORE_B64" | base64 -d > secrets/upload.keystore | |
| { | |
| echo "RELEASE_STORE_FILE=$PWD/secrets/upload.keystore" | |
| echo "RELEASE_STORE_PASSWORD=${KEYSTORE_PASSWORD:-}" | |
| echo "RELEASE_KEY_ALIAS=${KEY_ALIAS:-}" | |
| echo "RELEASE_KEY_PASSWORD=${KEY_PASSWORD:-}" | |
| } >> "$GITHUB_ENV" | |
| fi | |
| env: | |
| KEYSTORE_B64: ${{ secrets.KEYSTORE_B64 }} | |
| KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
| KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
| KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
| - name: Build release APK (Gms) | |
| if: env.HAS_SECRET == 'true' | |
| run: ./gradlew :app:assembleGmsRelease | |
| - name: Upload to Huawei AppGallery | |
| if: env.HAS_SECRET == 'true' | |
| uses: muhamedzeema/appgallery-deply-action@main | |
| with: | |
| client-id: ${{ secrets.HUAWEI_CLIENT_ID }} | |
| client-key: ${{ secrets.HUAWEI_CLIENT_KEY }} | |
| app-id: ${{ secrets.HUAWEI_APP_ID }} | |
| file-extension: apk | |
| file-path: app/build/outputs/apk/gms/release/app-gms-release.apk | |
| submit: true |