From f2e9839f7ee84da587540bb2fd006a0be6d7f3e9 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sat, 7 Dec 2024 16:36:31 +0000 Subject: [PATCH] Helper commit / branch to upload beta builds to Google Play --- .github/workflows/github.yml | 10 +++++----- android/vcmi-app/build.gradle | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index adfe45b38..3deae46b3 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -4,7 +4,7 @@ on: push: branches: - beta - - master + - googleplay - develop pull_request: workflow_dispatch: @@ -169,7 +169,7 @@ jobs: - name: ccache for everything but PRs uses: hendrikmuhs/ccache-action@v1.2 - if: ${{ (github.repository == 'vcmi/vcmi' && github.event.number == '' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master')) || github.repository != 'vcmi/vcmi' }} + if: ${{ (github.repository == 'vcmi/vcmi' && github.event.number == '' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/googleplay')) || github.repository != 'vcmi/vcmi' }} with: key: ${{ matrix.preset }}-no-PR restore-keys: | @@ -249,7 +249,7 @@ jobs: elif [[ ${{matrix.preset}} == linux-gcc-debug ]] then cmake -DENABLE_CCACHE:BOOL=ON -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 --preset ${{ matrix.preset }} - elif [[ (${{matrix.preset}} == android-conan-ninja-release) && (${{github.ref}} != 'refs/heads/master') ]] + elif [[ (${{matrix.preset}} == android-conan-ninja-release) && (${{github.ref}} != 'refs/heads/googleplay') ]] then cmake -DENABLE_CCACHE:BOOL=ON -DANDROID_GRADLE_PROPERTIES="applicationIdSuffix=.daily;signingConfig=dailySigning;applicationLabel=VCMI daily;applicationVariant=daily" --preset ${{ matrix.preset }} elif [[ ${{startsWith(matrix.platform, 'msvc') }} ]] @@ -327,7 +327,7 @@ jobs: ${{ env.ANDROID_APK_PATH }} - name: Upload Android aab artifacts - if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/master' }} + if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/googleplay' }} uses: actions/upload-artifact@v4 with: name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab @@ -345,7 +345,7 @@ jobs: ${{github.workspace}}/**/*.pdb - name: Upload build - if: ${{ (matrix.upload == 1) && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master') }} + if: ${{ (matrix.upload == 1) && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/googleplay') }} continue-on-error: true run: | if [ -z '${{ env.ANDROID_APK_PATH }}' ] ; then diff --git a/android/vcmi-app/build.gradle b/android/vcmi-app/build.gradle index b1649ba7a..c938e13f1 100644 --- a/android/vcmi-app/build.gradle +++ b/android/vcmi-app/build.gradle @@ -26,7 +26,7 @@ android { minSdk = qtMinSdkVersion as Integer targetSdk = qtTargetSdkVersion as Integer // ANDROID_TARGET_SDK_VERSION in the CMake project - versionCode 1670 + versionCode 1676 versionName "1.6.7" setProperty("archivesBaseName", "vcmi")