You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/04/15 20:20:46 UTC
[arrow-julia] branch main updated: Remove old releases and RCs on a new release (#315)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-julia.git
The following commit(s) were added to refs/heads/main by this push:
new fc13ea9 Remove old releases and RCs on a new release (#315)
fc13ea9 is described below
commit fc13ea9c89dc5c4ab1cbfd73dcc51a9ed0a36edd
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Sat Apr 16 05:20:41 2022 +0900
Remove old releases and RCs on a new release (#315)
fix #307
---
dev/release/release.sh | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/dev/release/release.sh b/dev/release/release.sh
index 9de9ee6..352f60d 100755
--- a/dev/release/release.sh
+++ b/dev/release/release.sh
@@ -30,12 +30,41 @@ rc=$2
rc_id="apache-arrow-julia-${version}-rc${rc}"
release_id="arrow-julia-${version}"
-echo "Copying dev/ to release/"
+echo "Move from dev/ to release/"
svn \
- cp \
+ mv \
-m "Apache Arrow Julia ${version}" \
https://dist.apache.org/repos/dist/dev/arrow/${rc_id} \
https://dist.apache.org/repos/dist/release/arrow/${release_id}
+echo "Remove all RCs"
+old_rcs=$(
+ svn ls https://dist.apache.org/repos/dist/dev/arrow/ | \
+ grep -E '^apache-arrow-julia-' | \
+ sort --version-sort --reverse
+)
+for old_rc in $old_rcs; do
+ echo "Remove RC ${old_rc}"
+ svn \
+ delete \
+ -m "Remove old Apache Arrow Julia RC: ${old_rc}" \
+ https://dist.apache.org/repos/dist/dev/arrow/${old_rc}
+done
+
+echo "Keep only the latest versions"
+old_releases=$(
+ svn ls https://dist.apache.org/repos/dist/release/arrow/ | \
+ grep -E '^arrow-julia-' | \
+ sort --version-sort --reverse | \
+ tail -n +2
+)
+for old_release_version in $old_releases; do
+ echo "Remove old release ${old_release_version}"
+ svn \
+ delete \
+ -m "Remove old Apache Arrow Julia release: ${old_release_version}" \
+ https://dist.apache.org/repos/dist/release/arrow/${old_release_version}
+done
+
echo "Success! The release is available here:"
echo " https://dist.apache.org/repos/dist/release/arrow/${release_id}"