Distribute builds for internal testing through Firebase #86
This file contains hidden or 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: Distribute builds for internal testing through Firebase | |
| on: | |
| workflow_dispatch: | |
| env: | |
| java_version: "17" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/dontmerge-demo-pay-and-verify' | |
| environment: | |
| name: Internal testing | |
| url: https://console.firebase.google.com/project/concordiummobilewallet/appdistribution/ | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create Firebase credentials file | |
| run: 'echo "$CREDENTIALS" > app/app-distribution-credentials.json' | |
| shell: bash | |
| env: | |
| CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}} | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "${{env.java_version}}" | |
| distribution: corretto | |
| - name: Build and distribute Testnet APK | |
| run: ./gradlew app:assembleTstnetRelease app:appDistributionUploadTstnetRelease --stacktrace | |
| - name: Upload the APKs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: APKs | |
| path: app/build/outputs/**/*.apk | |
| compression-level: 0 |