Skip to content

Merge branch 'issues/2595' of github.com:ooni/probe-android into issu… #128

Merge branch 'issues/2595' of github.com:ooni/probe-android into issu…

Merge branch 'issues/2595' of github.com:ooni/probe-android into issu… #128

name: Build & upload to Firebase App Distribution
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Resolve PR number
uses: jwalton/gh-find-current-pr@v1
id: findPr
with:
# Can be "open", "closed", or "all". Defaults to "open".
state: open
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build `DevFullDebug` variant
if: success() && steps.findPr.outputs.number
run: ./gradlew clean assembleDevFullDebug
env:
PR_NUMBER: ${{ steps.findPr.outputs.pr }}
- name: Upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
id: uploadArtifact
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: testers
file: app/build/outputs/apk/devFull/debug/app-dev-full-debug.apk
- name: Write Summary
run: |
echo "View this release in the Firebase console: ${{ steps.uploadArtifact.outputs.FIREBASE_CONSOLE_URI }}" >> $GITHUB_STEP_SUMMARY