Skip to content

Commit

Permalink
ci: add checksum to release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-way committed Nov 3, 2024
1 parent 3cd3136 commit b72f9e3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
run: cargo build --release --target wasm32-wasip1

- name: Create SHA256 checksum
run: sha256sum target/wasm32-wasip1/release/plugin.wasm > target/wasm32-wasip1/release/plugin.wasm.sha256
id: sha256
run: |
echo "sha=$(sha256sum target/wasm32-wasip1/release/plugin.wasm | cut -d ' ' -f 1)" >> "$GITHUB_OUTPUT"
- name: Create SHA256 checksum file
run: echo ${{ steps.sha256.outputs.sha }} > target/wasm32-wasip1/release/plugin.wasm.sha256

- name: Create Release
id: create_release
Expand All @@ -32,6 +37,10 @@ jobs:
files: |
target/wasm32-wasip1/release/plugin.wasm
target/wasm32-wasip1/release/plugin.wasm.sha256
name: v${{ github.ref_name }}
body: |
SHA256 checksums: ${{ steps.sha256.outputs.sha }}
append_body: true
draft: false
prerelease: false
generate_release_notes: true
Expand Down

0 comments on commit b72f9e3

Please sign in to comment.