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 49
49
50
50
- name : Archive
51
51
run : |
52
- ARCHIVE_FILE_NAME="apache-iceberg-cpp-${VERSION}-rc${RC} "
52
+ ARCHIVE_FILE_NAME="apache-iceberg-cpp-${VERSION}"
53
53
tar_gz="${ARCHIVE_FILE_NAME}.tar.gz"
54
54
echo "TAR_GZ=${tar_gz}" >> ${GITHUB_ENV}
55
55
git archive HEAD --prefix "${ARCHIVE_FILE_NAME}/" --output "${tar_gz}"
Original file line number Diff line number Diff line change 71
71
72
72
rc_hash=" $( git rev-list --max-count=1 " ${rc_tag} " ) "
73
73
74
- id=" apache-iceberg-cpp-${version} -rc${rc} "
74
+ id=" apache-iceberg-cpp-${version} "
75
+ rc_id=" ${id} -${rc} "
75
76
tar_gz=" ${id} .tar.gz"
76
77
77
78
if [ " ${RELEASE_SIGN} " -gt 0 ]; then
@@ -94,18 +95,18 @@ if [ "${RELEASE_SIGN}" -gt 0 ]; then
94
95
echo " Found GitHub Actions workflow with ID: ${run_id} "
95
96
gh run watch --repo " ${repository} " --exit-status " ${run_id} "
96
97
97
- mkdir -p " ${id } "
98
+ mkdir -p " ${rc_id } "
98
99
99
100
echo " Downloading .tar.gz and .sha512 from GitHub Releases"
100
101
gh release download " ${rc_tag} " \
101
- --dir " ${id } " \
102
+ --dir " ${rc_id } " \
102
103
--pattern " ${tar_gz} " \
103
104
--pattern " ${tar_gz} .sha512" \
104
105
--repo " ${repository} " \
105
106
--skip-existing
106
107
107
108
echo " Signing tar.gz"
108
- cd " ${id } "
109
+ cd " ${rc_id } "
109
110
gpg --armor --output " ${tar_gz} .asc" --detach-sig " ${tar_gz} "
110
111
echo " Add signature to GitHub release"
111
112
gh release upload " ${rc_tag} " \
117
118
118
119
if [ " ${RELEASE_UPLOAD} " -gt 0 ]; then
119
120
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} "
127
122
fi
128
123
129
124
echo " Draft email for [email protected] mailing list"
Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ VERSION="$1"
42
42
RC=" $2 "
43
43
44
44
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} "
47
48
48
49
: " ${VERIFY_DEFAULT:= 1} "
49
50
: " ${VERIFY_DOWNLOAD:= ${VERIFY_DEFAULT} } "
@@ -142,7 +143,7 @@ cd "${VERIFY_TMPDIR}"
142
143
import_gpg_keys
143
144
fetch_archive
144
145
ensure_source_directory
145
- pushd " ${ARCHIVE_BASE_NAME } "
146
+ pushd " ${RC_BASE_DIR } "
146
147
test_source_distribution
147
148
popd
148
149
You can’t perform that action at this time.
0 commit comments