From 6da657fea2bbd676ce94dc17758bca6f1ac07f24 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 24 Jun 2024 13:38:49 +0000 Subject: [PATCH] Generate aab in addition to apk --- .github/workflows/github.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index ce336d5df..1e169809e 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -249,10 +249,15 @@ jobs: if: ${{ startsWith(matrix.platform, 'android') }} run: | builtApkPath="$(ls ${{ github.workspace }}/out/build/${{ matrix.preset }}/android-build/vcmi-app/build/outputs/apk/release/*.${{ matrix.extension }})" + builtAabPath="$(ls ${{ github.workspace }}/out/build/${{ matrix.preset }}/android-build/vcmi-app/build/outputs/apk/release/*.aab)" ANDROID_APK_PATH="${{ github.workspace }}/$VCMI_PACKAGE_FILE_NAME.${{ matrix.extension }}" + ANDROID_AAB_PATH="${{ github.workspace }}/$VCMI_PACKAGE_FILE_NAME.aab" mv "$builtApkPath" "$ANDROID_APK_PATH" + mv "$builtAabPath" "$ANDROID_AAB_PATH" echo "ANDROID_APK_PATH=$ANDROID_APK_PATH" >> $GITHUB_ENV - - name: Android artifacts + echo "ANDROID_AAB_PATH=$ANDROID_AAB_PATH" >> $GITHUB_ENV + + - name: Android apk artifacts if: ${{ startsWith(matrix.platform, 'android') }} uses: actions/upload-artifact@v4 with: @@ -260,6 +265,14 @@ jobs: path: | ${{ env.ANDROID_APK_PATH }} + - name: Android aab artifacts + if: ${{ startsWith(matrix.platform, 'android') }} + uses: actions/upload-artifact@v4 + with: + name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab + path: | + ${{ env.ANDROID_AAB_PATH }} + - name: Symbols if: ${{ matrix.platform == 'msvc' }} uses: actions/upload-artifact@v4