Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release_rc.sh upload artifacts to apache dist #237

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "---------------------------------------------------------"