Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Sha256 Checksum for Release Artifacts #289

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
harrryr marked this conversation as resolved.
Show resolved Hide resolved
run: |
filename="aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl"
harrryr marked this conversation as resolved.
Show resolved Hide resolved
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 +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
harrryr marked this conversation as resolved.
Show resolved Hide resolved
Loading