-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release_rc.sh upload artifacts to apache dist (#237)
* added code to fix release_rc.sh * corrected tar name and email template --------- Co-authored-by: Pavan Kalyan <[email protected]>
- Loading branch information
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 |
---|---|---|
|
@@ -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" | ||
|
@@ -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 | ||
echo "---------------------------------------------------------" |