Skip to content

Commit

Permalink
Merge pull request #80 from AkihiroSuda/dev
Browse files Browse the repository at this point in the history
release.yml: migrate from `hub` to `gh`
  • Loading branch information
AkihiroSuda authored Oct 8, 2023
2 parents f2bb2c5 + 479db83 commit 6d41f77
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ jobs:
- name: "Prepare the release note"
working-directory: go/src/github.com/lima-vm/sshocker
run: |
tag="${GITHUB_REF##*/}"
cat << EOF | tee /tmp/release-note.txt
${tag}
#### Changes
(To be documented)
Expand All @@ -54,6 +51,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF##*/}"
asset_flags=()
for f in ./bin/* /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 "${tag}" --title "${tag}" ./bin/* /tmp/SHA256SUMS

0 comments on commit 6d41f77

Please sign in to comment.