Skip to content

Commit

Permalink
release_rc.sh upload artifacts to apache dist (#237)
Browse files Browse the repository at this point in the history
* added code to fix release_rc.sh

* corrected tar name and email template

---------

Co-authored-by: Pavan Kalyan <[email protected]>
  • Loading branch information
chil-pavn and Pavan Kalyan authored Dec 30, 2024
1 parent f4ced8a commit fd64202
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions dev/release/release_rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,28 @@ if [ "${RELEASE_SIGN}" -gt 0 ]; then
echo "Found GitHub Actions workflow with ID: ${run_id}"
gh run watch --repo "${repository}" --exit-status "${run_id}"

# Create release candidate directory structure
rc_dir="apache-iceberg-go-${version}-rc${rc}"
mkdir -p "${rc_dir}"

echo "Downloading .tar.gz from GitHub Releases"
gh release download "${rc_tag}" \
--dir . \
--dir "${rc_dir}" \
--pattern "${tar_gz}" \
--repo "${repository}" \
--skip-existing

echo "Signing tar.gz and creating checksums"
cd "${rc_dir}"
gpg --armor --output "${tar_gz}.asc" --detach-sig "${tar_gz}"
sha512sum "${tar_gz}" > "${tar_gz}.sha512"
cd ..
fi

if [ "${RELEASE_UPLOAD}" -gt 0 ]; then
echo "Uploading signature"
gh release upload "${rc_tag}" \
--clobber \
--repo "${repository}" \
"${tar_gz}.asc"
echo "Uploading to ASF dist/dev..."
svn mkdir -p "https://dist.apache.org/repos/dist/dev/iceberg/${rc_dir}" --parents
svn import "${rc_dir}" "https://dist.apache.org/repos/dist/dev/iceberg/${rc_dir}" -m "Apache Iceberg Go ${version} RC${rc}"
fi

echo "Draft email for [email protected] mailing list"
Expand Down Expand Up @@ -134,7 +139,7 @@ The vote will be open for at least 72 hours.
[ ] -1 Do not release this as Apache Iceberg Go ${version} because...
[1]: https://github.com/apache/iceberg-go/tree/${rc_hash}
[2]: https://github.com/apache/iceberg-go/releases/${rc_tag}
[2]: https://dist.apache.org/repos/dist/dev/iceberg/apache-iceberg-go-${version}-rc${rc}
[3]: https://github.com/apache/iceberg-go/blob/main/dev/release/README.md#verify
MAIL
echo "---------------------------------------------------------"

0 comments on commit fd64202

Please sign in to comment.