From bf33a54fe9ce0e37da4fc8dece94d16dd3eed602 Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Tue, 11 Jun 2024 03:30:11 +0500 Subject: [PATCH] Changed: Use GitHub `cli` instead of `hub` for uploading GitHub release files as later has been removed from runner images - https://github.com/actions/runner-images/issues/8362 --- .../workflows/attach_debug_apks_to_release.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/attach_debug_apks_to_release.yml b/.github/workflows/attach_debug_apks_to_release.yml index a17b3264..965a2047 100644 --- a/.github/workflows/attach_debug_apks_to_release.yml +++ b/.github/workflows/attach_debug_apks_to_release.yml @@ -71,14 +71,13 @@ jobs: fi echo "Attaching APKs to github release" - if ! hub release edit \ - -m "" \ - -a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_universal.apk" \ - -a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_arm64-v8a.apk" \ - -a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_armeabi-v7a.apk" \ - -a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86_64.apk" \ - -a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86.apk" \ - -a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_sha256sums" \ - "$RELEASE_VERSION_NAME"; then + if ! gh release upload "$RELEASE_VERSION_NAME" \ + "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_universal.apk" \ + "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_arm64-v8a.apk" \ + "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_armeabi-v7a.apk" \ + "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86_64.apk" \ + "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86.apk" \ + "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_sha256sums" \ + ; then exit_on_error "Attach APKs to release failed for '$APK_VERSION_TAG' release." fi