From d3a9ccd88713f992edadb26456bc5fea974d83f0 Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 1 Nov 2024 12:09:56 -0700 Subject: [PATCH] Add .sha256 file to the release note as an asset --- .github/workflows/release_build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 725d97a3c..678fc9a8d 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -120,6 +120,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 @@ -130,4 +138,5 @@ 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 \ No newline at end of file