This is an automated email from the ASF dual-hosted git repository. lzljs3620320 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink-table-store.git
commit 259fedbf8ff6507b61e3012e37b66643a5913e77 Author: JingsongLi <[email protected]> AuthorDate: Mon Jul 25 16:37:07 2022 +0800 [hotfix] Add create_binary_release.sh --- tools/releasing/create_binary_release.sh | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/tools/releasing/create_binary_release.sh b/tools/releasing/create_binary_release.sh new file mode 100755 index 00000000..c03acb5c --- /dev/null +++ b/tools/releasing/create_binary_release.sh @@ -0,0 +1,76 @@ +#!/usr/bin/env bash + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +## +## Variables with defaults (if not overwritten by environment) +## +MVN=${MVN:-mvn} + +if [ -z "${RELEASE_VERSION:-}" ]; then + echo "RELEASE_VERSION was not set." + exit 1 +fi + +# fail immediately +set -o errexit +set -o nounset +# print command before executing +set -o xtrace + +CURR_DIR=`pwd` +if [[ `basename $CURR_DIR` != "tools" ]] ; then + echo "You have to call the script from the tools/ dir" + exit 1 +fi + +if [ "$(uname)" == "Darwin" ]; then + SHASUM="shasum -a 512" +else + SHASUM="sha512sum" +fi + +cd .. + +FLINK_DIR=`pwd` +RELEASE_DIR=${FLINK_DIR}/tools/releasing/release +mkdir ${RELEASE_DIR} + +########################### + +mvn clean install -Dcheckstyle.skip=true -Dgpg.skip -DskipTests +cp flink-table-store-dist/target/flink-table-store-dist-$RELEASE_VERSION.jar ${RELEASE_DIR} +cp flink-table-store-hive/flink-table-store-hive-connector/target/flink-table-store-hive-connector-$RELEASE_VERSION.jar ${RELEASE_DIR} +cp flink-table-store-spark/target/flink-table-store-spark-$RELEASE_VERSION.jar ${RELEASE_DIR} +cp flink-table-store-spark2/target/flink-table-store-spark2-$RELEASE_VERSION.jar ${RELEASE_DIR} + +mvn clean install -Dcheckstyle.skip=true -Dgpg.skip -Dmaven.test.skip=true -Pflink-1.14 +cp flink-table-store-dist/target/flink-table-store-dist-$RELEASE_VERSION.jar ${RELEASE_DIR}/flink-table-store-dist-${RELEASE_VERSION}_1.14.jar + +cd ${RELEASE_DIR} +gpg --armor --detach-sig "flink-table-store-dist-$RELEASE_VERSION.jar" +gpg --armor --detach-sig "flink-table-store-hive-connector-$RELEASE_VERSION.jar" +gpg --armor --detach-sig "flink-table-store-spark-$RELEASE_VERSION.jar" +gpg --armor --detach-sig "flink-table-store-spark2-$RELEASE_VERSION.jar" +gpg --armor --detach-sig "flink-table-store-dist-${RELEASE_VERSION}_1.14.jar" + +$SHASUM "flink-table-store-dist-$RELEASE_VERSION.jar" > "flink-table-store-dist-$RELEASE_VERSION.jar.sha512" +$SHASUM "flink-table-store-hive-connector-$RELEASE_VERSION.jar" > "flink-table-store-hive-connector-$RELEASE_VERSION.jar.sha512" +$SHASUM "flink-table-store-spark-$RELEASE_VERSION.jar" > "flink-table-store-spark-$RELEASE_VERSION.jar.sha512" +$SHASUM "flink-table-store-spark2-$RELEASE_VERSION.jar" > "flink-table-store-spark2-$RELEASE_VERSION.jar.sha512" +$SHASUM "flink-table-store-dist-${RELEASE_VERSION}_1.14.jar" > "flink-table-store-dist-${RELEASE_VERSION}_1.14.jar.sha512"
