diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/android.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index e99bf7d..b303eb6 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -23,8 +23,15 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x android-app/gradlew + - name: Compute version + run: | + COMMIT_SHORT=$(git rev-parse --short HEAD) + COMMIT_MSG=$(git log -1 --pretty=format:'%s' | cut -c1-60) + echo "BUILD_VERSION_CODE=${{ github.run_number }}" >> $GITHUB_ENV + echo "BUILD_VERSION_NAME=1.0.${{ github.run_number }} (${COMMIT_SHORT} ${COMMIT_MSG})" >> $GITHUB_ENV + - name: Build with Gradle - run: ./gradlew assembleDebug + run: ./gradlew assembleDebug -PbuildVersionCode="$BUILD_VERSION_CODE" -PbuildVersionName="$BUILD_VERSION_NAME" working-directory: android-app - name: upload artifact to Firebase App Distribution @@ -34,6 +41,7 @@ jobs: appId: ${{secrets.FIREBASE_APP_ID}} serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} groups: testers + releaseNotes: "${{ env.BUILD_VERSION_NAME }}" file: android-app/app/build/outputs/apk/debug/app-debug.apk - name: Notify claudomator |
