diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 725d97a3c..ac528f897 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -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 @@ -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 @@ -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 + + + + + +