Skip to content

Commit 2146f09

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

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/release_build.yml

Lines changed: 17 additions & 1 deletion
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
@@ -120,6 +121,14 @@ jobs:
120121
tags: |
121122
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
122123
124+
- name: Get SHA256 checksum of wheel file
125+
id: get_sha256
126+
env:
127+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128+
run: |
129+
filename="aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl"
130+
shasum -a 256 dist/$filename | awk '{print $1}' > $filename.sha256
131+
123132
# Publish to GitHub releases
124133
- name: Create GH release
125134
id: create_release
@@ -130,4 +139,11 @@ jobs:
130139
--title "Release v${{ github.event.inputs.version }}" \
131140
--draft \
132141
"v${{ github.event.inputs.version }}" \
133-
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
142+
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl \
143+
aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl.sha256
144+
145+
146+
147+
148+
149+

0 commit comments

Comments
 (0)