Skip to content

Commit 94ca5a0

Browse files
authored
GH-604: [Release] Upload only source archive to dist.apache.org (#607)
Fixes GH-604. For example, here are target files for 18.2.0: * apache-arrow-java-18.2.0.tar.gz * apache-arrow-java-18.2.0.tar.gz.asc * apache-arrow-java-18.2.0.tar.gz.sha256 * apache-arrow-java-18.2.0.tar.gz.sha512
1 parent d2fd283 commit 94ca5a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/release/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@ git tag -a -m "${version}" "${tag}" "${rc_tag}^{}"
4949
git push origin "${tag}"
5050

5151
release_id="apache-arrow-java-${version}"
52+
source_archive="apache-arrow-java-${version}.tar.gz"
5253
dist_url="https://dist.apache.org/repos/dist/release/arrow"
5354
dist_base_dir="dev/release/dist"
5455
dist_dir="${dist_base_dir}/${release_id}"
5556
echo "Checking out ${dist_url}"
5657
rm -rf "${dist_base_dir}"
5758
svn co --depth=empty "${dist_url}" "${dist_base_dir}"
5859
gh release download "${rc_tag}" \
59-
--repo "${repository}" \
6060
--dir "${dist_dir}" \
61+
--pattern "${source_archive}*" \
62+
--repo "${repository}" \
6163
--skip-existing
6264

6365
echo "Uploading to release/"

0 commit comments

Comments
 (0)