Skip to content

Merge branch 'develop' #126

Merge branch 'develop'

Merge branch 'develop' #126

name: App Distribute CI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_dogfooding_sample_app:
name: Build and Distribute Dogfooding Android
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
- name: Prepare environment
run: |
echo "${{ secrets.RELEASE_KEYSTORE }}" > .sign/release.keystore.asc
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/release.keystore.asc > .sign/release.keystore
echo "${{ secrets.RELEASE_KEYSTORE_PROPERTIES }}" > .sign/keystore.properties.asc
gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/keystore.properties.asc > .sign/keystore.properties
echo "${{ secrets.ENV_PROPERTIES }}" > .env.properties
- name: Assemble
run: bash ./gradlew :dogfooding:assembleRelease --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: dogfooding-release
path: dogfooding/build/outputs/apk/dogfooding/release/
- name: Upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_DOGFOODING_SAMPLE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: stream-testers
file: dogfooding/build/outputs/apk/dogfooding/release/dogfooding-dogfooding-release.apk