Skip to content

Commit

Permalink
Add .sha256 file to the release note as an asset
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Dec 17, 2024
1 parent fac2f0e commit 2146f09
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
version:
description: The version to tag the release with, e.g., 1.2.0
required: true
push:

env:
AWS_DEFAULT_REGION: us-east-1
Expand Down Expand Up @@ -120,6 +121,14 @@ jobs:
tags: |
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
- name: Get SHA256 checksum of wheel file
id: get_sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
filename="aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl"
shasum -a 256 dist/$filename | awk '{print $1}' > $filename.sha256
# Publish to GitHub releases
- name: Create GH release
id: create_release
Expand All @@ -130,4 +139,11 @@ jobs:
--title "Release v${{ github.event.inputs.version }}" \
--draft \
"v${{ github.event.inputs.version }}" \
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl \
aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl.sha256

0 comments on commit 2146f09

Please sign in to comment.