[7.x] Add .ci/make.sh script for building releases

Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
This commit is contained in:
Seth Michael Larson
2020-10-12 16:42:23 -05:00
committed by GitHub
parent f6d2da6740
commit 9b8cee0199
6 changed files with 52 additions and 16 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -eo pipefail
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
BASE_DIR="$( dirname "$BASE_DIR" )"
if [[ "$1" != "release" ]]; then
echo "Must be called ./.ci/make.sh release [version]"
exit 1
fi
python $BASE_DIR/utils/build_dists.py
mkdir -p $BASE_DIR/.ci/output
cp $BASE_DIR/dist/* $BASE_DIR/.ci/output/