Skip to content

Commit

Permalink
Merge pull request #75 from buty4649/add-sha256-to-release-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 authored Sep 5, 2023
2 parents 9120746 + 3916c9f commit 9b1ccb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
echo "VERSION: ${VERSION}"
gh release create $VERSION --generate-notes release/*.tar.gz release/*.zip
gh release create $VERSION --generate-notes release/*.tar.gz release/*.zip release/*.sha256
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ def archive_binary_file(targets, version)
sh "zip -j #{dest}.zip #{src}"
end
end
Dir.chdir('release') do
Dir.glob('*.{zip,tar.gz}').each do |f|
sh "sha256sum #{f} > #{f}.sha256"
end
end
end

task default: :build
Expand Down

0 comments on commit 9b1ccb7

Please sign in to comment.