Skip to content

Commit

Permalink
Add gpg signing and SHA512 checksum calculation for MLTBX file.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingurney authored and sgilmore10 committed Apr 2, 2024
1 parent 6f6d67d commit db4ed2a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dev/release/05-binary-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,30 @@ docker_run \
VERSION=${version} \
YUM_TARGETS=$(IFS=,; echo "${yum_targets[*]}")

# Upload the MATLAB MLTBX Release Candidate to the GitHub Releases
# area of the Apache Arrow GitHub project.
mltbx_file="${ARROW_ARTIFACTS_DIR}/matlab-dist/matlab-arrow-${version_with_rc}.mltbx"
mltbx_signature_gpg_ascii_armor=${mltbx_file}.asc
mltbx_checksum_sha512=${mltbx_file}.sha512

# Sign the MLTBX file and create a detached (--deatch-sign) ASCII armor (--armor) GPG signature file.
gpg --detach-sign --local-user "${GPG_KEY_ID}" --armor ${mltbx_file}

# Compute the SHA512 checksum of the MLTBX file.
shasum --algorithm 512 ${mltbx_file} > ${mltbx_checksum_sha512}

# Upload artifacts to the Apache Arrow
# GitHub Releases area and mark as a "Prerelease".
if [ ${UPLOAD_MATLAB} -gt 0 ]; then
mltbx_file="${ARROW_ARTIFACTS_DIR}/matlab-dist/matlab-arrow-${version_with_rc}.mltbx"
release_tag=${version_with_rc}
target_branch=${version_with_rc}
release_notes="Release Candidate: ${version_with_rc}"
repository="https://github.com/apache/arrow"
gh release create \
${release_tag} \
${mltbx_file} \
${mltbx_signature_gpg_ascii_armor} \
${mltbx_checksum_sha512} \
--prerelease \
--target ${target_branch} \
--notes "${release_notes}" \
Expand Down

0 comments on commit db4ed2a

Please sign in to comment.