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

Use svn mv instead for releasing #211

Merged
merged 1 commit into from
Nov 18, 2024
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
22 changes: 6 additions & 16 deletions dev/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,16 @@ git tag "${tag}" "${rc_tag}"
git push origin "${tag}"

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

release_id="apache-iceberg-go-${version}"
echo "Uploading to release/"
pushd "${dist_dir}"
svn add .
svn ci -m "Apache Iceberg Go ${version}"
popd
rm -rf "${dist_dir}"
svn \
mv "${dist_dev_url}/apache-iceberg-go-${version}-rc${rc}/" \
"${dist_url}/apache-iceberg-go-${version}/" \
-m "Apache Iceberg-go ${version}"

echo "Keep only the latest versions"
old_releases=$(
svn ls https://dist.apache.org/repos/dist/release/iceberg/ |
svn ls "${dist_url}" |
grep -E '^apache-iceberg-go-' |
sort --version-sort --reverse |
tail -n +2
Expand Down
Loading