You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ze...@apache.org on 2024/12/30 16:03:55 UTC

(iceberg-go) branch main updated: release_rc.sh upload artifacts to apache dist (#237)

This is an automated email from the ASF dual-hosted git repository.

zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git


The following commit(s) were added to refs/heads/main by this push:
     new fd64202  release_rc.sh upload artifacts to apache dist (#237)
fd64202 is described below

commit fd642023a766566b09303c5fc5dbe651248a5ace
Author: Pavan Kalyan Chiluka <ch...@gmail.com>
AuthorDate: Mon Dec 30 21:33:49 2024 +0530

    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 <Pa...@Admins-MacBook-Air.local>
---
 dev/release/release_rc.sh | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/dev/release/release_rc.sh b/dev/release/release_rc.sh
index ac6f0d1..c09b218 100755
--- a/dev/release/release_rc.sh
+++ b/dev/release/release_rc.sh
@@ -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 dev@iceberg.apache.org 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
 MAIL
 echo "---------------------------------------------------------"