Skip to content

Commit d3a9ccd

Browse files
committed
Add .sha256 file to the release note as an asset
1 parent fac2f0e commit d3a9ccd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release_build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ jobs:
120120
tags: |
121121
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
122122
123+
- name: Get SHA256 checksum of wheel file
124+
id: get_sha256
125+
env:
126+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
run: |
128+
filename="aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl"
129+
shasum -a 256 dist/$filename | awk '{print $1}' > $filename.sha256
130+
123131
# Publish to GitHub releases
124132
- name: Create GH release
125133
id: create_release
@@ -130,4 +138,5 @@ jobs:
130138
--title "Release v${{ github.event.inputs.version }}" \
131139
--draft \
132140
"v${{ github.event.inputs.version }}" \
133-
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
141+
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl \
142+
aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl.sha256

0 commit comments

Comments
 (0)