From 2977c7f4fed14cfd5f8ba6f65eeb06be221244c9 Mon Sep 17 00:00:00 2001 From: Fokko Date: Mon, 18 Nov 2024 19:26:47 +0100 Subject: [PATCH] Use `svn mv` instead for releasing --- dev/release/release.sh | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/dev/release/release.sh b/dev/release/release.sh index d67264e..46c4755 100755 --- a/dev/release/release.sh +++ b/dev/release/release.sh @@ -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