Skip to content

Commit 012f732

Browse files
authored
Merge pull request #37 from AkihiroSuda/dev
release.yml: migrate from `hub` to `gh`
2 parents 6b5dc7b + 53f6e7e commit 012f732

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ jobs:
4040
(cd _artifacts; shasum -a 256 SHA256SUMS)
4141
- name: "Prepare the release note"
4242
run: |
43-
tag="${GITHUB_REF##*/}"
4443
shasha=$(shasum -a 256 _artifacts/SHA256SUMS | awk '{print $1}')
4544
cat <<-EOF | tee /tmp/release-note.txt
46-
${tag}
47-
4845
(Changes to be documented)
4946
- - -
5047
The binaries were built automatically on GitHub Actions.
@@ -58,6 +55,4 @@ jobs:
5855
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5956
run: |
6057
tag="${GITHUB_REF##*/}"
61-
asset_flags=()
62-
for f in _artifacts/*; do asset_flags+=("-a" "$f"); done
63-
hub release create "${asset_flags[@]}" -F /tmp/release-note.txt --draft "${tag}"
58+
gh release create -F /tmp/release-note.txt --draft --title "${tag}" "${tag}" _artifacts/*

0 commit comments

Comments
 (0)