Skip to content

Commit

Permalink
GH-604: [Release] Upload only source archive to dist.apache.org (#607)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kou authored Feb 12, 2025
1 parent d2fd283 commit 94ca5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,17 @@ git tag -a -m "${version}" "${tag}" "${rc_tag}^{}"
git push origin "${tag}"

release_id="apache-arrow-java-${version}"
source_archive="apache-arrow-java-${version}.tar.gz"
dist_url="https://dist.apache.org/repos/dist/release/arrow"
dist_base_dir="dev/release/dist"
dist_dir="${dist_base_dir}/${release_id}"
echo "Checking out ${dist_url}"
rm -rf "${dist_base_dir}"
svn co --depth=empty "${dist_url}" "${dist_base_dir}"
gh release download "${rc_tag}" \
--repo "${repository}" \
--dir "${dist_dir}" \
--pattern "${source_archive}*" \
--repo "${repository}" \
--skip-existing

echo "Uploading to release/"
Expand Down

0 comments on commit 94ca5a0

Please sign in to comment.