Skip to content

Commit

Permalink
fix(release): fix wrong upload path
Browse files Browse the repository at this point in the history
We should use
`https://dist.apache.org/repos/dist/release/arrow/apache-arrow-go-${version}`
but `https://dist.apache.org/repos/dist/release/arrow` was used. (The
last `/apache-arrow-go-${version}` was missing.)

closes apache#242
  • Loading branch information
kou committed Jan 10, 2025
1 parent 58255a7 commit 4aabf79
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dev/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,24 @@ echo "Tagging for release: ${tag}"
git tag "${tag}" "${rc_tag}"
git push origin "${tag}"

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

release_id="apache-arrow-go-${version}"
echo "Uploading to release/"
pushd "${dist_dir}"
pushd "${dist_base_dir}"
svn add .
svn ci -m "Apache Arrow Go ${version}"
popd
rm -rf "${dist_dir}"
rm -rf "${dist_base_dir}"

echo "Keep only the latest versions"
old_releases=$(
Expand Down

0 comments on commit 4aabf79

Please sign in to comment.