Bump com.google.devtools.ksp from 2.2.20-2.0.4 to 2.3.0 #48
Workflow file for this run
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: Publish Prod Build to App Distribution | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ 'develop' ] | |
| # Cancel any in-progress runs of this workflow if a new run is triggered within the same branch or PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info. | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Prepare Release | |
| uses: ./.github/actions/prepare-release | |
| # This will decode the keystore from base 64 text representation that we have stored in secrets | |
| # and generates and keystore file and gets stored in /android-app path | |
| - name: Decode Keystore | |
| env: | |
| ENCODED_STRING: ${{ secrets.KEYSTORE_BASE_64 }} | |
| shell: bash | |
| run: | | |
| echo $ENCODED_STRING > keystore-b64.txt | |
| base64 -d <keystore-b64.txt >upload-keystore.jks | |
| # The secrets.gradle file that is stored as text, does not need to be decoded | |
| # and can be directly written to a file | |
| # This file is used by the gradle build to sign the APK | |
| - name: Create secrets.gradle | |
| run: echo "${{ secrets.SECRETS_GRADLE }}" > secrets.gradle | |
| - name: Build Prod Release APK | |
| run: ./gradlew assembleProdRelease --stacktrace | |
| - name: Upload Release APK to Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-${{ github.run_number }}-prod-release-apk | |
| path: | | |
| ${{ github.workspace }}/app/build/outputs/apk/prod/release/app-prod-release.apk | |
| - name: Upload Prod Release APK to Firebase App Distribution | |
| uses: nickwph/firebase-app-distribution-action@v1 | |
| with: | |
| file: ${{ github.workspace }}/app/build/outputs/apk/prod/release/app-prod-release.apk | |
| app: ${{ secrets.FIREBASE_PROD_APP_ID }} | |
| credentials: ${{ secrets.FIREBASE_CREDENTIALS }} | |
| # groups: "beta-testers" // add this line if you want to specify a group of testers which will be invited to test this build. Make sure to create the group in Firebase Console first. | |
| release-notes: Release build for ${{ github.ref_name }} branch - Run ${{ github.run_number }} - ${{ github.sha }} | |
| - name: Build Prod Release Bundle | |
| run: ./gradlew bundleProdRelease --stacktrace | |
| - name: Upload Release Bundle to Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-${{ github.run_number }}-prod-release-bundle | |
| path: | | |
| ${{ github.workspace }}/app/build/outputs/bundle/prodRelease/app-prod-release.aab |