Skip to content

Commit

Permalink
Changed: Use github cli instead of hub as it has been removed from ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
agnostic-apollo committed Jan 28, 2024
1 parent d17611c commit 4876b75
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/attach_apk_to_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
exit_on_error() {
echo "$1"
echo "Deleting '$RELEASE_VERSION_NAME' release and '$GITHUB_REF' tag"
hub release delete "$RELEASE_VERSION_NAME"
gh release delete --cleanup-tag --yes "$RELEASE_VERSION_NAME"
git push --delete origin "$GITHUB_REF"
exit 1
}
Expand Down Expand Up @@ -65,10 +65,9 @@ jobs:
fi
echo "Attaching APK to github release"
if ! hub release edit \
-m "" \
-a "$APK_DIR_PATH/${APK_BASENAME_PREFIX}.apk" \
-a "$APK_DIR_PATH/sha256sums" \
"$RELEASE_VERSION_NAME"; then
if ! gh release upload "$RELEASE_VERSION_NAME" \
"$APK_DIR_PATH/${APK_BASENAME_PREFIX}.apk" \
"$APK_DIR_PATH/sha256sums" \
; then
exit_on_error "Attach APK to release failed for '$RELEASE_VERSION_NAME' release."
fi

0 comments on commit 4876b75

Please sign in to comment.