1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00

Helper commit / branch to upload beta builds to Google Play

This commit is contained in:
Ivan Savenko
2024-12-07 16:36:31 +00:00
parent fb97891cd3
commit f2e9839f7e
2 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ on:
push: push:
branches: branches:
- beta - beta
- master - googleplay
- develop - develop
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
@@ -169,7 +169,7 @@ jobs:
- name: ccache for everything but PRs - name: ccache for everything but PRs
uses: hendrikmuhs/ccache-action@v1.2 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: with:
key: ${{ matrix.preset }}-no-PR key: ${{ matrix.preset }}-no-PR
restore-keys: | restore-keys: |
@@ -249,7 +249,7 @@ jobs:
elif [[ ${{matrix.preset}} == linux-gcc-debug ]] elif [[ ${{matrix.preset}} == linux-gcc-debug ]]
then then
cmake -DENABLE_CCACHE:BOOL=ON -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 --preset ${{ matrix.preset }} 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 then
cmake -DENABLE_CCACHE:BOOL=ON -DANDROID_GRADLE_PROPERTIES="applicationIdSuffix=.daily;signingConfig=dailySigning;applicationLabel=VCMI daily;applicationVariant=daily" --preset ${{ matrix.preset }} 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') }} ]] elif [[ ${{startsWith(matrix.platform, 'msvc') }} ]]
@@ -327,7 +327,7 @@ jobs:
${{ env.ANDROID_APK_PATH }} ${{ env.ANDROID_APK_PATH }}
- name: Upload Android aab artifacts - 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 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab
@@ -345,7 +345,7 @@ jobs:
${{github.workspace}}/**/*.pdb ${{github.workspace}}/**/*.pdb
- name: Upload build - 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 continue-on-error: true
run: | run: |
if [ -z '${{ env.ANDROID_APK_PATH }}' ] ; then if [ -z '${{ env.ANDROID_APK_PATH }}' ] ; then

View File

@@ -26,7 +26,7 @@ android {
minSdk = qtMinSdkVersion as Integer minSdk = qtMinSdkVersion as Integer
targetSdk = qtTargetSdkVersion as Integer // ANDROID_TARGET_SDK_VERSION in the CMake project targetSdk = qtTargetSdkVersion as Integer // ANDROID_TARGET_SDK_VERSION in the CMake project
versionCode 1670 versionCode 1676
versionName "1.6.7" versionName "1.6.7"
setProperty("archivesBaseName", "vcmi") setProperty("archivesBaseName", "vcmi")