chore(deps): update r0adkll/upload-google-play digest to d2d9b79 #480
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: Build Android app | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build app bundle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: | | |
bundleQa | |
"-PexternalVersionName=pr-${{ steps.date.outputs.date }}-${{ github.event.pull_request.number }}-${{ github.sha }}" | |
- name: Lint | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: lint | |
- name: Run unit tests | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: testDebugUnitTest | |
- name: Upload app bundle to GitHub | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: apk | |
path: app-android/build/outputs/bundle/qa/app-android-qa.aab | |
- name: Upload to internal app sharing | |
id: publish | |
uses: r0adkll/upload-google-play@7c9dfbb03e8ff6c55c5190fee017d61430ba7377 | |
with: | |
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_INTERNAL_APP_SHARING }} | |
packageName: fr.outadoc.justchatting | |
releaseFiles: app-android/build/outputs/bundle/qa/app-android-qa.aab | |
track: internalsharing | |
mappingFile: app-android/build/outputs/mapping/release/mapping.txt | |
status: completed | |
- name: Find status comment | |
uses: peter-evans/find-comment@v2 | |
id: fc | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
body-includes: Download from Play Store | |
- name: Update status comment | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
comment-id: ${{ steps.fc.outputs.comment-id }} | |
issue-number: ${{ github.event.pull_request.number }} | |
edit-mode: replace | |
body: | | |
[Download from Play Store](${{ steps.publish.outputs.internalSharingDownloadUrl }}) | |
![QR Code download](https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=${{ steps.publish.outputs.internalSharingDownloadUrl }}) |