upload.sh 711 B

12345678910111213141516171819202122
  1. #!/bin/bash -ex
  2. # SPDX-FileCopyrightText: 2023 yuzu Emulator Project
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. . ./.ci/scripts/common/pre-upload.sh
  5. REV_NAME="yuzu-${GITDATE}-${GITREV}"
  6. BUILD_FLAVOR="mainline"
  7. BUILD_TYPE_LOWER="release"
  8. BUILD_TYPE_UPPER="Release"
  9. if [ "${GITHUB_REPOSITORY}" == "yuzu-emu/yuzu" ]; then
  10. BUILD_TYPE_LOWER="relWithDebInfo"
  11. BUILD_TYPE_UPPER="RelWithDebInfo"
  12. fi
  13. cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/${BUILD_TYPE_LOWER}/app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.apk" \
  14. "artifacts/${REV_NAME}.apk"
  15. cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}${BUILD_TYPE_UPPER}"/"app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.aab" \
  16. "artifacts/${REV_NAME}.aab"