[#6] Test script #6
Workflow file for this run
This file contains 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 staging app to Firebase App Distribution | |
on: | |
push: | |
branches: | |
- develop | |
- feature/6-set-up-cd-android | |
jobs: | |
deploy_android: | |
name: Deploy Android app to Firebase App Distribution | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
defaults: | |
run: | |
working-directory: ./sample | |
steps: | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Checkout source code | |
uses: actions/[email protected] | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches/modules-* | |
~/.gradle/caches/jars-* | |
~/.gradle/caches/build-cache-* | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Decode buildKonfig properties | |
run: echo ${{ secrets.BUILD_KONFIG_PROPERTIES }} | base64 --decode > buildKonfig.properties | |
- name: Build staging APK | |
run: ./gradlew assembleStagingDebug | |
- name: Deploy staging to Firebase | |
uses: wzieba/[email protected] | |
with: | |
appId: ${{secrets.FIREBASE_APP_ID_STAGING}} | |
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIAL_FILE_CONTENT_STAGING }} | |
groups: testers | |
file: sample/android/build/outputs/apk/staging/debug/app-staging-debug.apk |