Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): fix wrong upload path #243

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading