summaryrefslogtreecommitdiff
path: root/.github/workflows/android.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/android.yml')
-rw-r--r--.github/workflows/android.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index b303eb6..7e68aed 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -27,11 +27,12 @@ jobs:
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
+ VN="1.0.${{ github.run_number }} (${COMMIT_SHORT} ${COMMIT_MSG})"
+ printf '\nbuildVersionCode=${{ github.run_number }}\nbuildVersionName=%s\n' "$VN" >> android-app/gradle.properties
+ echo "BUILD_VERSION_NAME=${VN}" >> $GITHUB_ENV
- name: Build with Gradle
- run: ./gradlew assembleDebug -PbuildVersionCode="$BUILD_VERSION_CODE" -PbuildVersionName="$BUILD_VERSION_NAME"
+ run: ./gradlew assembleDebug
working-directory: android-app
- name: upload artifact to Firebase App Distribution