Skip to content

Commit 9e3ff41

Browse files
committed
Output SHA256 Checksum of Release Artifact
1 parent fac2f0e commit 9e3ff41

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/release_build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
version:
66
description: The version to tag the release with, e.g., 1.2.0
77
required: true
8+
push:
89

910
env:
1011
AWS_DEFAULT_REGION: us-east-1
@@ -131,3 +132,14 @@ jobs:
131132
--draft \
132133
"v${{ github.event.inputs.version }}" \
133134
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
135+
136+
- name: Get SHA256 checksum of wheel file
137+
env:
138+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139+
run: |
140+
checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl | awk '{ print $1 }')
141+
echo "RELEASE_ARTIFACT_CHECKSUM_VALUES"
142+
echo "aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl: $checksum"
143+
144+
145+

checksum.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)