-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavan Kalyan
authored and
Pavan Kalyan
committed
Dec 27, 2024
1 parent
08dac87
commit e62b5db
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ fi | |
|
||
rc_hash="$(git rev-list --max-count=1 "${rc_tag}")" | ||
|
||
id="apache-iceberg-go-${version}-rc${rc}" | ||
id="apache-iceberg-go-${version}" | ||
tar_gz="${id}.tar.gz" | ||
|
||
if [ "${RELEASE_SIGN}" -gt 0 ]; then | ||
|
@@ -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" | ||
|