This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch release_utils in repository https://gitbox.apache.org/repos/asf/flink-connector-shared-utils.git
The following commit(s) were added to refs/heads/release_utils by this push: new 9995aec [FLINK-31475] Allow project to be overridden 9995aec is described below commit 9995aec5d314351c190fbed9e9a1b439fdba217f Author: Chesnay Schepler <ches...@apache.org> AuthorDate: Wed Mar 15 16:09:42 2023 +0100 [FLINK-31475] Allow project to be overridden --- README.md | 1 + stage_source_release.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1e3d0b..259bf6b 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Updates the version in the poms of the current branch to `${NEW_VERSION}`. Creates a source release from the current branch and pushes it via `svn` to [dist.apache.org](https://dist.apache.org/repos/dist/dev/flink). +The project name is automatically determined from the repository name, but can be overridden via `${PROJECT}`. The version is automatically determined from the version in the pom. The created `svn` directory will contain a `-rc${RC_NUM}` suffix. diff --git a/stage_source_release.sh b/stage_source_release.sh index b8e659f..a8dd23e 100755 --- a/stage_source_release.sh +++ b/stage_source_release.sh @@ -33,7 +33,7 @@ function create_source_release { mkdir -p ${RELEASE_DIR} mkdir -p ${ARTIFACTS_DIR} - project=${PWD##*/} + project=${PROJECT:-PWD##*/} version=$(get_pom_version) if [[ ${version} =~ -SNAPSHOT$ ]]; then echo "Source releases should not be created for SNAPSHOT versions. Use 'update_branch_version.sh' first." @@ -57,7 +57,7 @@ function create_source_release { function deploy_source_release { cd ${SOURCE_DIR} - project=${PWD##*/} + project=${PROJECT:-PWD##*/} version=$(get_pom_version)-rc${RC_NUM} release=${project}-${version}