From 542b005c67af606906a62b628287605fc7c5eb4e Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Mon, 9 Oct 2023 07:32:19 +0900 Subject: [PATCH] release.yaml: migrate from `hub` to `gh` `hub` was deprecated and removed from GitHub Actions runners Signed-off-by: Akihiro Suda --- .github/workflows/release.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4399e2a..73b0741 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,10 +52,7 @@ jobs: run: sha256sum /tmp/SHA256SUMS - name: "Prepare the release note" run: | - tag="${GITHUB_REF##*/}" cat << EOF | tee /tmp/release-note.txt - ${tag} - #### About the binaries The binaries were built automatically on GitHub Actions. The build log is available for 90 days: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} @@ -77,6 +74,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | tag="${GITHUB_REF##*/}" - asset_flags=() - for f in /tmp/artifact/* /tmp/SHA256SUMS; do asset_flags+=("-a" "$f"); done - hub release create "${asset_flags[@]}" -F /tmp/release-note.txt --draft "${tag}" + gh release create -F /tmp/release-note.txt --draft --title "${tag}" "${tag}" /tmp/artifact/* /tmp/SHA256SUMS