File tree Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 4949
5050 - name : Archive
5151 run : |
52- ARCHIVE_FILE_NAME="apache-iceberg-cpp-${VERSION}-rc${RC} "
52+ ARCHIVE_FILE_NAME="apache-iceberg-cpp-${VERSION}"
5353 tar_gz="${ARCHIVE_FILE_NAME}.tar.gz"
5454 echo "TAR_GZ=${tar_gz}" >> ${GITHUB_ENV}
5555 git archive HEAD --prefix "${ARCHIVE_FILE_NAME}/" --output "${tar_gz}"
Original file line number Diff line number Diff line change 7171
7272rc_hash=" $( git rev-list --max-count=1 " ${rc_tag} " ) "
7373
74- id=" apache-iceberg-cpp-${version} -rc${rc} "
74+ id=" apache-iceberg-cpp-${version} "
75+ rc_id=" ${id} -${rc} "
7576tar_gz=" ${id} .tar.gz"
7677
7778if [ " ${RELEASE_SIGN} " -gt 0 ]; then
@@ -94,18 +95,18 @@ if [ "${RELEASE_SIGN}" -gt 0 ]; then
9495 echo " Found GitHub Actions workflow with ID: ${run_id} "
9596 gh run watch --repo " ${repository} " --exit-status " ${run_id} "
9697
97- mkdir -p " ${id } "
98+ mkdir -p " ${rc_id } "
9899
99100 echo " Downloading .tar.gz and .sha512 from GitHub Releases"
100101 gh release download " ${rc_tag} " \
101- --dir " ${id } " \
102+ --dir " ${rc_id } " \
102103 --pattern " ${tar_gz} " \
103104 --pattern " ${tar_gz} .sha512" \
104105 --repo " ${repository} " \
105106 --skip-existing
106107
107108 echo " Signing tar.gz"
108- cd " ${id } "
109+ cd " ${rc_id } "
109110 gpg --armor --output " ${tar_gz} .asc" --detach-sig " ${tar_gz} "
110111 echo " Add signature to GitHub release"
111112 gh release upload " ${rc_tag} " \
117118
118119if [ " ${RELEASE_UPLOAD} " -gt 0 ]; then
119120 echo " Uploading to ASF dist/dev..."
120- # rename files to remove -rc${rc} suffix before uploading
121- pushd " ${id} "
122- for fname in ./* ; do
123- mv " ${fname} " " ${fname// -rc${rc} / } "
124- done
125- popd
126- svn import " ${id} " " https://dist.apache.org/repos/dist/dev/iceberg/${id} " -m " Apache Iceberg C++ ${version} RC${rc} "
121+ svn import " ${rc_id} " " https://dist.apache.org/repos/dist/dev/iceberg/${rc_id} " -m " Apache Iceberg C++ ${version} RC${rc} "
127122fi
128123
129124echo " Draft email for [email protected] mailing list"
Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ VERSION="$1"
4242RC=" $2 "
4343
4444ICEBERG_DIST_BASE_URL=" https://downloads.apache.org/iceberg"
45- DOWNLOAD_RC_BASE_URL=" https://dist.apache.org/repos/dist/dev/iceberg/apache-iceberg-cpp-${VERSION} -rc${RC} "
46- ARCHIVE_BASE_NAME=" apache-iceberg-cpp-${VERSION} -rc${RC} "
45+ RC_BASE_DIR=" apache-iceberg-cpp-${VERSION} -rc${RC} "
46+ DOWNLOAD_RC_BASE_URL=" https://dist.apache.org/repos/dist/dev/iceberg/${RC_BASE_DIR} "
47+ ARCHIVE_BASE_NAME=" apache-iceberg-cpp-${VERSION} "
4748
4849: " ${VERIFY_DEFAULT:= 1} "
4950: " ${VERIFY_DOWNLOAD:= ${VERIFY_DEFAULT} } "
@@ -142,7 +143,7 @@ cd "${VERIFY_TMPDIR}"
142143import_gpg_keys
143144fetch_archive
144145ensure_source_directory
145- pushd " ${ARCHIVE_BASE_NAME } "
146+ pushd " ${RC_BASE_DIR } "
146147test_source_distribution
147148popd
148149
You can’t perform that action at this time.
0 commit comments