mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Helper commit / branch to upload beta builds to Google Play
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/workflows/github.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/github.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 | ||||
|   | ||||
| @@ -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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user