From 456ede5b17a34c006066232f2785e974f06b804c Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Mon, 6 Mar 2023 21:29:46 +0300 Subject: [PATCH] fix uploading Android APK to server --- .github/workflows/github.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index 655c509c2..42a7c9ef4 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -237,7 +237,11 @@ jobs: if: ${{ (matrix.pack == 1 || startsWith(matrix.platform, 'android')) && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/features/')) && matrix.platform != 'msvc' }} continue-on-error: true run: | - cd '${{github.workspace}}/android/vcmi-app/build/outputs/apk/daily' || cd '${{github.workspace}}/out/build/${{matrix.preset}}' + if cd '${{github.workspace}}/android/vcmi-app/build/outputs/apk/daily' ; then + mv '${{ env.ANDROID_APK_PATH }}' "$VCMI_PACKAGE_FILE_NAME.${{ matrix.extension }}" + else + cd '${{github.workspace}}/out/build/${{matrix.preset}}' + fi source '${{github.workspace}}/CI/upload_package.sh' env: DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}