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
This commit is contained in:
agnostic-apollo 2024-06-11 03:30:11 +05:00
parent 57e4ef456b
commit bf33a54fe9
No known key found for this signature in database
GPG key ID: BCCC0287E9DCCAED

View file

@ -71,14 +71,13 @@ jobs:
fi fi
echo "Attaching APKs to github release" echo "Attaching APKs to github release"
if ! hub release edit \ if ! gh release upload "$RELEASE_VERSION_NAME" \
-m "" \ "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_universal.apk" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_universal.apk" \ "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_arm64-v8a.apk" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_arm64-v8a.apk" \ "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_armeabi-v7a.apk" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_armeabi-v7a.apk" \ "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86_64.apk" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86_64.apk" \ "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86.apk" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_x86.apk" \ "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_sha256sums" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}_sha256sums" \ ; then
"$RELEASE_VERSION_NAME"; then
exit_on_error "Attach APKs to release failed for '$APK_VERSION_TAG' release." exit_on_error "Attach APKs to release failed for '$APK_VERSION_TAG' release."
fi fi