Skip to content

Commit 3401db6

Browse files
authored
fix: fix release tarball name (#221)
1 parent 2447918 commit 3401db6

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

.github/workflows/rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
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}"

dev/release/release_rc.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ fi
7171

7272
rc_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}"
7576
tar_gz="${id}.tar.gz"
7677

7778
if [ "${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}" \
@@ -117,13 +118,7 @@ fi
117118

118119
if [ "${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}"
127122
fi
128123

129124
echo "Draft email for [email protected] mailing list"

dev/release/verify_rc.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ VERSION="$1"
4242
RC="$2"
4343

4444
ICEBERG_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}"
142143
import_gpg_keys
143144
fetch_archive
144145
ensure_source_directory
145-
pushd "${ARCHIVE_BASE_NAME}"
146+
pushd "${RC_BASE_DIR}"
146147
test_source_distribution
147148
popd
148149

0 commit comments

Comments
 (0)