DEP-420 feat: sentry λμ (#215) #247
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
if: | | |
!contains(toJson(github.event.head_commit.message), 'docs') | |
jobs: | |
deploy: | |
name: Deploy debug app to firebase app distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
cache: gradle | |
- run: echo $DEBUG_KEYSTORE_FILE | base64 -d > debug.keystore | |
env: | |
DEBUG_KEYSTORE_FILE: ${{ secrets.DEBUG_KEYSTORE_FILE }} | |
- run: echo $LOCAL_PROPERTIES_FILE | base64 -d > local.properties | |
env: | |
LOCAL_PROPERTIES_FILE: ${{ secrets.LOCAL_PROPERTIES_FILE }} | |
- name: Build | |
run: chmod +x ./gradlew && ./gradlew :app::assembleAlpha --quiet | |
env: | |
DEBUG_STORE_PASSWORD: ${{ secrets.DEBUG_STORE_PASSWORD }} | |
DEBUG_KEY_PASSWORD: ${{ secrets.DEBUG_KEY_PASSWORD }} | |
DEBUG_KEY_ALIAS: ${{ secrets.DEBUG_KEY_ALIAS }} | |
- name: Fetch credential file from secrets | |
uses: timheuer/base64-to-file@v1.2 | |
with: | |
encodedString: ${{ secrets.FIREBASE_CREDENTIAL_FILE }} | |
fileName: 'credential_file.json' | |
- name: Upload artifact to Firebase Distribution using credential file | |
uses: wzieba/Firebase-Distribution-Github-Action@v1.3.5 | |
with: | |
appId: ${{ secrets.FIREBASE_APP_ID }} | |
token: ${{ secrets.FIREBASE_TOKEN }} | |
serviceCredentialsFile: credential_file.json | |
groups: android | |
file: app/build/outputs/apk/alpha/app-alpha.apk | |
debug: true |