Skip to content

app-distribution-alpha #1464

app-distribution-alpha

app-distribution-alpha #1464

name: app-distribution-alpha
on:
workflow_dispatch:
permissions: read-all
jobs:
app-distribution-alpha:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop'
permissions:
contents: write # Required to add QR code to repository
issues: write # Required to post comments on issues
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up our JDK environment
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'zulu'
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
- name: Set up signing configuration
uses: ./.github/actions/setup-signing
with:
keystore: ${{ secrets.SIGNING_KEYSTORE }}
store-password: ${{ secrets.SIGNING_STORE_PASSWORD }}
key-alias: ${{ secrets.SIGNING_KEY_ALIAS }}
key-password: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Decode Google service account
shell: bash
run: |
GOOGLE_SERVICE_ACCOUNT_FILE_PATH=${RUNNER_TEMP}/google-service-account.json
echo "GOOGLE_SERVICE_ACCOUNT_FILE_PATH=${GOOGLE_SERVICE_ACCOUNT_FILE_PATH}" >> $GITHUB_ENV
echo "${{ secrets.GOOGLE_SERVICE_ACCOUNT }}" | base64 -d > ${GOOGLE_SERVICE_ACCOUNT_FILE_PATH}
- name: Upload APK to Firebase App Distribution
uses: ./.github/actions/app-distribution
with:
append-git-sha-to-version-name: 'true'
variant: 'alphaRelease'
firebase-token: ${{ secrets.FIREBASE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
group: 'ouds-android-development'
- name: Publish Firebase App Distribution QR code
run: ./gradlew publishAppDistributionQrCode -PapplicationId=com.orange.ouds.alpha.app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}